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