_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c12700 | train | // RunIteration runs every time android calls to update the screen | {
"resource": ""
} | ||
c12701 | train | // mobileDraw runs once per frame. RunIteration for the other backends | {
"resource": ""
} | ||
c12702 | train | // NewAnimationComponent creates an AnimationComponent containing all given
// drawables. Animations will be played using the given rate. | {
"resource": ""
} | ||
c12703 | train | // SelectAnimationByName sets the current animation. The name must be
// registered. | {
"resource": ""
} | ||
c12704 | train | // SelectAnimationByAction sets the current animation.
// An nil action value selects the default animation. | {
"resource": ""
} | ||
c12705 | train | // AddDefaultAnimation adds an animation which is used when no other animation is playing. | {
"resource": ""
} | ||
c12706 | train | // AddAnimation registers an animation under its name, making it available
// through SelectAnimationByName. | {
"resource": ""
} | ||
c12707 | train | // AddAnimations registers all given animations. | {
"resource": ""
} | ||
c12708 | train | // Cell returns the drawable for the current frame. | {
"resource": ""
} | ||
c12709 | train | // NextFrame advances the current animation by one frame. | {
"resource": ""
} | ||
c12710 | train | // Add starts tracking the given entity. | {
"resource": ""
} | ||
c12711 | train | // AddByInterface Allows an Entity to be added directly using the Animtionable interface. which every entity containing the BasicEntity,AnimationComponent,and RenderComponent anonymously, automatically satisfies. | {
"resource": ""
} | ||
c12712 | train | // Remove stops tracking the given entity. | {
"resource": ""
} | ||
c12713 | train | // Update advances the animations of all tracked entities. | {
"resource": ""
} | ||
c12714 | train | // SetTitle sets the title of the window | {
"resource": ""
} | ||
c12715 | train | // NewQuadtree creates a new quadtree for the given bounds.
// When setting usePool to true, the internal values will be taken from a sync.Pool which reduces the allocation overhead.
// maxObjects tells the tree how many objects should be stored within a level before the quadtree cell is split. | {
"resource": ""
} | ||
c12716 | train | // Destroy frees the nodes if the Quadtree uses the node pool | {
"resource": ""
} | ||
c12717 | train | // split - split the node into 4 subnodes | {
"resource": ""
} | ||
c12718 | train | // Insert inserts the given item to the quadtree | {
"resource": ""
} | ||
c12719 | train | // Remove removes the given item from the quadtree | {
"resource": ""
} | ||
c12720 | train | // Retrieve returns all objects that could collide with the given bounding box | {
"resource": ""
} | ||
c12721 | train | // Retrieve returns all objects that could collide with the given bounding box and passing the given filter function. | {
"resource": ""
} | ||
c12722 | train | //Clear removes all items from the quadtree | {
"resource": ""
} | ||
c12723 | train | // New is called when FPSSystem is added to the world | {
"resource": ""
} | ||
c12724 | train | // Update changes the dipslayed text and prints to the terminal every second
// to report the FPS | {
"resource": ""
} | ||
c12725 | train | // Load will load the tmx file and any other image resources that are needed | {
"resource": ""
} | ||
c12726 | train | // Unload removes the preloaded level from the cache | {
"resource": ""
} | ||
c12727 | train | // Resource retrieves and returns the preloaded level of type 'TMXResource' | {
"resource": ""
} | ||
c12728 | train | // Bounds returns the level boundaries as an engo.AABB object | {
"resource": ""
} | ||
c12729 | train | // mapPoint returns the map point of the passed in screen point | {
"resource": ""
} | ||
c12730 | train | // screenPoint returns the screen point of the passed in map point | {
"resource": ""
} | ||
c12731 | train | // View returns the tile's viewport's min and max X & Y | {
"resource": ""
} | ||
c12732 | train | // Load processes the data stream and parses it as a freetype font | {
"resource": ""
} | ||
c12733 | train | // Load removes the preloaded font from the cache | {
"resource": ""
} | ||
c12734 | train | // Resource retrieves the preloaded font, passed as a `FontResource` | {
"resource": ""
} | ||
c12735 | train | // Close removes the player from the audio system's players, which are currently playing players.
// it then finalizes and frees the data from the player. Do not use a player after it has been
// closed | {
"resource": ""
} | ||
c12736 | train | // Seek seeks the position with the given offset.
//
// Seek returns error when seeking the source stream returns error. | {
"resource": ""
} | ||
c12737 | train | // Current returns the current position. | {
"resource": ""
} | ||
c12738 | train | // GetVolume gets the Player's volume | {
"resource": ""
} | ||
c12739 | train | // SetVolume sets the Player's volume
// volume can only be set from 0 to 1 | {
"resource": ""
} | ||
c12740 | train | // Nextafter returns the next representable int value after x towards y. | {
"resource": ""
} | ||
c12741 | train | // Dispatch sends a message to all subscribed handlers of the message's type
// To prevent any data races, be aware that these listeners occur as callbacks and can be
// executed at any time. If variables are altered in the handler, utilize channels, locks,
// semaphores, or any other method necessary to ensure the mem... | {
"resource": ""
} | ||
c12742 | train | // Listen subscribes to the specified message type and calls the specified handler when fired | {
"resource": ""
} | ||
c12743 | train | // StopListen removes a previously added handler from the listener queue | {
"resource": ""
} | ||
c12744 | train | // Removes a single handler from the handler queue, called during cleanup of all handlers scheduled for removal | {
"resource": ""
} | ||
c12745 | train | // SetScene sets the currentScene to the given Scene, and
// optionally forcing to create a new ecs.World that goes with it. | {
"resource": ""
} | ||
c12746 | train | // RegisterScene registers the `Scene`, so it can later be used by `SetSceneByName` | {
"resource": ""
} | ||
c12747 | train | // NewKeyManager creates a new KeyManager. | {
"resource": ""
} | ||
c12748 | train | // Set is used for updating whether or not a key is held down, or not held down. | {
"resource": ""
} | ||
c12749 | train | // Get retrieves a keys state. | {
"resource": ""
} | ||
c12750 | train | // State returns the raw state of a key. | {
"resource": ""
} | ||
c12751 | train | // Down checks whether the current input is being held down. | {
"resource": ""
} | ||
c12752 | train | // Run is called to create a window, initialize everything, and start the main loop. Once this function returns,
// the game window has been closed already. You can supply a lot of options within `RunOptions`, and your starting
// `Scene` should be defined in `defaultScene`. | {
"resource": ""
} | ||
c12753 | train | // SetFPSLimit can be used to change the value in the given `RunOpts` after already having called `engo.Run`. | {
"resource": ""
} | ||
c12754 | train | //TouchEvent handles the touch events sent from ios and puts them in the InputManager | {
"resource": ""
} | ||
c12755 | train | // SetTitle changes the title of the page to the given string | {
"resource": ""
} | ||
c12756 | train | // WindowSize returns the width and height of the current window | {
"resource": ""
} | ||
c12757 | train | // jsPollKeys polls the keys collected by the javascript callback
// this ensures the keys only get updated once per frame, since the
// callback has no information about the frames and is invoked several
// times between frames. This makes Input.Button.JustPressed and JustReleased
// able to return true properly. | {
"resource": ""
} | ||
c12758 | train | // RunPreparation is called automatically when calling Open. It should only be called once. | {
"resource": ""
} | ||
c12759 | train | // SetCursor changes the cursor | {
"resource": ""
} | ||
c12760 | train | // CreateWindow opens the window and gets a GL surface for rendering | {
"resource": ""
} | ||
c12761 | train | // WindowSize gets the current window size | {
"resource": ""
} | ||
c12762 | train | //TouchEvent handles the touch events sent from Android and puts them in the InputManager | {
"resource": ""
} | ||
c12763 | train | // New initializes the CameraSystem. | {
"resource": ""
} | ||
c12764 | train | // Update updates the camera. lLong tasks are attempted to update incrementally in batches. | {
"resource": ""
} | ||
c12765 | train | // FollowEntity sets the camera to follow the entity with BasicEntity basic
// and SpaceComponent space. | {
"resource": ""
} | ||
c12766 | train | // Update updates the camera based on keyboard input. | {
"resource": ""
} | ||
c12767 | train | // BindKeyboard sets the vertical and horizontal axes used by the KeyboardScroller. | {
"resource": ""
} | ||
c12768 | train | // NewKeyboardScroller creates a new KeyboardScroller system using the provided scrollSpeed,
// and horizontal and vertical axes. | {
"resource": ""
} | ||
c12769 | train | // New adjusts CameraBounds to the bounds of EntityScroller. | {
"resource": ""
} | ||
c12770 | train | // Update moves the camera to the center of the space component.
// Values are automatically clamped to TrackingBounds by the camera. | {
"resource": ""
} | ||
c12771 | train | // Update zooms the camera in and out based on the movement of the scroll wheel. | {
"resource": ""
} | ||
c12772 | train | // Update rotates the camera if the scroll wheel is pressed down. | {
"resource": ""
} | ||
c12773 | train | // Corners returns the location of the four corners of the rectangular plane defined by the `SpaceComponent`, taking
// into account any possible rotation. | {
"resource": ""
} | ||
c12774 | train | // triangleArea computes the area of the triangle given by the three points | {
"resource": ""
} | ||
c12775 | train | // Add adds an entity to the CollisionSystem. To be added, the entity has to have a basic, collision, and space component. | {
"resource": ""
} | ||
c12776 | train | // AddByInterface Provides a simple way to add an entity to the system that satisfies Collisionable. Any entity containing, BasicEntity,CollisionComponent, and SpaceComponent anonymously, automatically does this. | {
"resource": ""
} | ||
c12777 | train | // IsIntersecting tells if two engo.AABBs intersect. | {
"resource": ""
} | ||
c12778 | train | // MinimumTranslation tells how much an entity has to move to no longer overlap another entity. | {
"resource": ""
} | ||
c12779 | train | // NewMDBStore returns a new MDBStore and potential
// error. Requres a base directory from which to operate,
// and a maximum size. If maxSize is not 0, a default value is used. | {
"resource": ""
} | ||
c12780 | train | // initialize is used to setup the mdb store | {
"resource": ""
} | ||
c12781 | train | // startTxn is used to start a transaction and open all the associated sub-databases | {
"resource": ""
} | ||
c12782 | train | // Gets a log entry at a given index | {
"resource": ""
} | ||
c12783 | train | // Stores a log entry | {
"resource": ""
} | ||
c12784 | train | // Stores multiple log entries | {
"resource": ""
} | ||
c12785 | train | // Deletes a range of log entries. The range is inclusive. | {
"resource": ""
} | ||
c12786 | train | // Initialize event listener and channels | {
"resource": ""
} | ||
c12787 | train | // Close event channels when done message is received | {
"resource": ""
} | ||
c12788 | train | // Closes the OS specific event listener,
// removes all watches and closes all event channels. | {
"resource": ""
} | ||
c12789 | train | // Remove pid from the watched process set. | {
"resource": ""
} | ||
c12790 | train | // LookupPrivilegeName looks up a privilege name given a LUID value. | {
"resource": ""
} | ||
c12791 | train | // mapPrivileges maps privilege names to LUID values. | {
"resource": ""
} | ||
c12792 | train | // EnableTokenPrivileges enables the specified privileges in the given
// Token. The token must have TOKEN_ADJUST_PRIVILEGES access. If the token
// does not already contain the privilege it cannot be enabled. | {
"resource": ""
} | ||
c12793 | train | // GetTokenUser returns the User associated with the given Token. | {
"resource": ""
} | ||
c12794 | train | // GetDebugInfo returns general debug info about the current process. | {
"resource": ""
} | ||
c12795 | train | // Initialize bsd implementation of the eventListener interface | {
"resource": ""
} | ||
c12796 | train | // Initialize Kevent_t fields and propagate changelist for the given pid | {
"resource": ""
} | ||
c12797 | train | // Delete filter for given pid from the queue | {
"resource": ""
} | ||
c12798 | train | // Add and enable filter for given pid in the queue | {
"resource": ""
} | ||
c12799 | train | // Poll the kqueue file descriptor and dispatch to the Event channels | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.