_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c12600 | // lexPredicateOrLiteral tries to lex a predicate or a literal out of the input. | |
c12601 | // lexPredicate lexes a predicate out of the input. | |
c12602 | // lexLiteral lexes a literal out of the input. | |
c12603 | // consumeKeyword consume and emits a valid token | |
c12604 | // emitError passes and error to the client with proper error messaging. | |
c12605 | // accept consumes the next rune if it's equal to the one provided. | |
c12606 | // UUIDToBase64 recodes it into a compact string. | |
c12607 | // Base64ToUUID attempts to decode a base 64 encoded UUID. | |
c12608 | // Delta is the amount of seconds between the last tick and the one before that | |
c12609 | // Time is the number of seconds the clock has been running | |
c12610 | // Register registers a resource loader for the given file format. | |
c12611 | // load loads the given resource into memory. | |
c12612 | // LoadReaderData loads a resource when you already have the reader for it. | |
c12613 | // Unload releases the given resource from memory. | |
c12614 | // NewAsymmetricSpritesheetFromTexture creates a new AsymmetricSpriteSheet from a
// TextureResource. The data provided is the location and size of the sprites | |
c12615 | // NewAsymmetricSpritesheetFromFile creates a new AsymmetricSpriteSheet from a
// file name. The data provided is the location and size of the sprites | |
c12616 | // NewSpritesheetFromTexture creates a new spritesheet from a texture resource. | |
c12617 | // NewSpritesheetFromFile is a simple handler for creating a new spritesheet from a file
// textureName is the name of a texture already preloaded with engo.Files.Add | |
c12618 | // NewSpritesheetWithBorderFromTexture creates a new spritesheet from a texture resource.
// This sheet has sprites of a uniform width and height, but also have borders around
// each sprite to prevent bleeding over | |
c12619 | // NewSpritesheetWithBorderFromFile creates a new spritesheet from a file
// This sheet has sprites of a uniform width and height, but also have borders around
// each sprite to prevent bleeding over | |
c12620 | // Cell gets the region at the index i, updates and pulls from cache if need be | |
c12621 | // Drawables returns all the drawables on the sheet | |
c12622 | // Cells returns all the cells on the sheet | |
c12623 | // colorToFloat32 returns the float32 representation of the given color | |
c12624 | // LoadShader takes a Vertex-shader and Fragment-shader, compiles them and attaches them to a newly created glProgram.
// It will log possible compilation errors | |
c12625 | // SetShader sets the shader used by the RenderComponent. | |
c12626 | // SetZIndex sets the order that the RenderComponent is drawn to the screen. Higher z-indices are drawn on top of
// lower ones if they overlap. | |
c12627 | // SetMinFilter sets the ZoomFilter used for minimizing the RenderComponent | |
c12628 | // SetMagFilter sets the ZoomFilter used for magnifying the RenderComponent | |
c12629 | // New initializes the RenderSystem | |
c12630 | // Add adds an entity to the RenderSystem. The entity needs a basic, render, and space component to be added to the system. | |
c12631 | // EntityExists looks if the entity is already into the System's entities. It will return the index >= 0 of the object into de rs.entities or -1 if it could not be found. | |
c12632 | // AddByInterface adds any Renderable to the render system. Any Entity containing a BasicEntity,RenderComponent, and SpaceComponent anonymously does this automatically | |
c12633 | // Remove removes an entity from the RenderSystem | |
c12634 | // Update draws the entities in the RenderSystem to the OpenGL Surface. | |
c12635 | // SetBackground sets the OpenGL ClearColor to the provided color. | |
c12636 | // New is called when the AudioSystem is added to the world. | |
c12637 | // Add adds an entity to the AudioSystem | |
c12638 | // AddByInterface Allows an Entity to be added directly using the Audioable interface,
// which every entity containing the BasicEntity and AnimationComponent anonymously,
// automatically satisfies. | |
c12639 | // Remove removes an entity from the AudioSystem | |
c12640 | // Update doesn't do anything since audio is run on it's own thread | |
c12641 | // Read reads from all the currently playing entities and combines them into a
// single stream that is passed to the oto player. | |
c12642 | // NewInputManager holds onto anything input related for engo | |
c12643 | // RegisterAxis registers a new axis which can be used to retrieve inputs which are spectrums. | |
c12644 | // RegisterButton registers a new button input. | |
c12645 | // Create is for loading fonts from the disk, given a location | |
c12646 | // TextDimensions returns the total width, total height and total line size
// of the input string written out in the Font. | |
c12647 | // Render returns a Texture in the Font based on the input string. | |
c12648 | // Width returns the width of the Text generated from a FontAtlas. This implements the common.Drawable interface. | |
c12649 | // Height returns the height the Text generated from a FontAtlas. This implements the common.Drawable interface. | |
c12650 | // New initializes the MouseSystem. It is run before any updates. | |
c12651 | // AddByInterface adds the Entity to the system as long as it satisfies, Mouseable. Any Entity containing a BasicEntity,MouseComponent, and RenderComponent, automatically does this. | |
c12652 | // Remove removes an entity from the MouseSystem. | |
c12653 | // Close is implementation of io.Closer's Close. | |
c12654 | // Decode decodes MP3 source and returns a decoded stream.
//
// Decode returns error when decoding fails or IO error happens.
//
// Decode automatically resamples the stream to fit with the audio context if necessary. | |
c12655 | // Load processes the data stream and parses it as an audio file | |
c12656 | // Load removes the preloaded audio file from the cache | |
c12657 | // Resource retrieves the preloaded audio file, passed as a `AudioResource` | |
c12658 | // Set sets the coordinates of p to x and y | |
c12659 | // AddScalar adds s to each component of p | |
c12660 | // SubtractScalar subtracts s from each component of p | |
c12661 | // MultiplyScalar multiplies each component of p by s | |
c12662 | // Subtract sets the components of p to the pointwise difference of p - p2 | |
c12663 | // Equal indicates whether two points have the same value, avoiding issues with float precision | |
c12664 | // PointDistance returns the euclidean distance between p and p2 | |
c12665 | // PointDistanceSquared returns the squared euclidean distance between p and p2 | |
c12666 | // ProjectOnto returns the vector produced by projecting p on to p2
// returns an empty Point if they can't project onto one another | |
c12667 | // Normalize returns the unit vector from p, and its magnitude.
// if you try to normalize the null vector, the return value will be null values | |
c12668 | // Set sets the matrix to the given float slice and returns the matrix. The float
// slice must have at least 9 elements. If the float slie contains more than 9 elements,
// only the first 9 will be copied. | |
c12669 | // Identity sets the matrix to the Identity matrix and returns the matrix. | |
c12670 | // Multiply postmultiplies m matrix with m2 and stores the result in m, returning m.
// Multiplaction is the result of m2 times m. | |
c12671 | // TranslatePoint translates m by the point p. | |
c12672 | // ScaleComponent returns the current scale component of m.
// This assumes uniform scaling. | |
c12673 | // TranslationComponent returns the current translation component of m.
// This assumes uniform scaling. | |
c12674 | // RotationComponentRad returns the current rotation component of m in radians.
// This assumes uniform scaling. | |
c12675 | // Rotate rorates m counter-clockwise by deg degrees. | |
c12676 | // RotateRad rotates m counter-clockwise by rad radians. | |
c12677 | // PointDistance Returns the euclidean distance from the point p to the
// line segment l | |
c12678 | // PointDistanceSquared returns the squared euclidean distance from the point p
// to the line segment l | |
c12679 | // Normal returns the left hand normal of the line segment l | |
c12680 | // DotProduct returns the dot product between this and that | |
c12681 | // CrossProduct returns the 2 dimensional cross product of this and that,
// which represents the magnitude of the three dimensional cross product | |
c12682 | // LineIntersection returns the point where the line segments one and two
// intersect and true if there is intersection, nil and false when line
// segments one and two do not intersect | |
c12683 | // LineTraceFraction returns the trace fraction of tracer through boundary
// 1 means no intersection
// 0 means tracer's origin lies on the boundary line | |
c12684 | // LineTrace runs a series of line traces from tracer to each boundary line
// and returns the nearest trace values | |
c12685 | // MultiplyMatrixVector multiplies the matrix m with the float32 vector v and returns the result.
// The size of vector v MUST be 2 or 3. If v is size 2, a 3rd component is automatically added with
// value of 1.0. | |
c12686 | // MultiplyMatrixVector multiplies the matrix m with the point and returns the result. | |
c12687 | // UploadTexture sends the image to the GPU, to be kept in GPU RAM | |
c12688 | // NewTextureResource sends the image to the GPU and returns a `TextureResource` for easy access | |
c12689 | // NewTextureSingle sends the image to the GPU and returns a `Texture` with a viewport for single-sprite images | |
c12690 | // ImageToNRGBA takes a given `image.Image` and converts it into an `image.NRGBA`. Especially useful when transforming
// image.Uniform to something usable by `engo`. | |
c12691 | // Close removes the Texture data from the GPU. | |
c12692 | // decode accepts an ogg stream and returns a decorded stream. | |
c12693 | // Value returns the value of an Axis. | |
c12694 | // Value returns the value of a keypress. | |
c12695 | // NewAxisMouse creates a new Mouse Axis in either direction AxisMouseVert or AxisMouseHori. | |
c12696 | // Value returns the delta of a mouse movement. | |
c12697 | // NewBackground creates a background of colored tiles - might not be the most efficient way to do this
// It gets added to the world as well, so we won't return anything. | |
c12698 | // openFile is the mobile-specific way of opening a file | |
c12699 | // RunPreparation is called only once, and is called automatically when calling Open
// It is only here for benchmarking in combination with OpenHeadlessNoRun |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.