_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c169600 | validation | // Size returns the board size. | {
"resource": ""
} | ||
c169601 | validation | // Draw draws the board to the given boardImage. | {
"resource": ""
} | ||
c169602 | validation | // specify the clear value for the color index buffers | {
"resource": ""
} | ||
c169603 | validation | // Creates a program object | {
"resource": ""
} | ||
c169604 | validation | // specify a callback to receive debugging messages from the GL
// Parameter callback has type C.GLDEBUGPROC. | {
"resource": ""
} | ||
c169605 | validation | // return error information | {
"resource": ""
} | ||
c169606 | validation | // check if the rendering context has not been lost due to software or hardware issues | {
"resource": ""
} | ||
c169607 | validation | // specify the width of rasterized lines | {
"resource": ""
} | ||
c169608 | validation | // place a marker in the feedback buffer | {
"resource": ""
} | ||
c169609 | validation | // specify the diameter of rasterized points | {
"resource": ""
} | ||
c169610 | validation | // IsReady returns a boolean value indicating whether the audio is ready or not.
//
// On some browsers, user interaction like click or pressing keys is required to start audio. | {
"resource": ""
} | ||
c169611 | validation | // NewPlayerFromBytes creates a new player with the given bytes.
//
// As opposed to NewPlayer, you don't have to care if src is already used by another player or not.
// src can be shared by multiple players.
//
// The format of src should be same as noted at NewPlayer.
//
// NewPlayerFromBytes's error is always nil a... | {
"resource": ""
} | ||
c169612 | validation | // Close closes the stream.
//
// When closing, the stream owned by the player will also be closed by calling its Close.
// This means that the source stream passed via NewPlayer will also be closed.
//
// Close returns error when closing the source returns error. | {
"resource": ""
} | ||
c169613 | validation | // Seek seeks the position with the given offset.
//
// The passed source to NewPlayer must be io.Seeker, or Seek panics.
//
// Seek returns error when seeking the source stream returns error. | {
"resource": ""
} | ||
c169614 | validation | // decode decodes the IDAT data into an image. | {
"resource": ""
} | ||
c169615 | validation | // Decode reads a PNG image from r and returns it as an image.Image.
// The type of Image returned depends on the PNG contents. | {
"resource": ""
} | ||
c169616 | validation | // DecodeConfig returns the color model and dimensions of a PNG image without
// decoding the entire image. | {
"resource": ""
} | ||
c169617 | validation | // Add is deprecated. | {
"resource": ""
} | ||
c169618 | validation | // IsButtonPressed returns a boolean value indicating whether
// the given virtual button b is pressed. | {
"resource": ""
} | ||
c169619 | validation | // Name returns the pysical button's name for the given virtual button. | {
"resource": ""
} | ||
c169620 | validation | // AppendHookOnBeforeUpdate appends a hook function that is run before the main update function
// every frame. | {
"resource": ""
} | ||
c169621 | validation | // DebugPrint draws the string str on the image on left top corner.
//
// The available runes are in U+0000 to U+00FF, which is C0 Controls and Basic Latin and C1 Controls and Latin-1 Supplement.
//
// DebugPrint always returns nil as of 1.5.0-alpha. | {
"resource": ""
} | ||
c169622 | validation | // GamepadIDButtonPressed returns a gamepad ID where at least one button is pressed.
// If no button is pressed, GamepadIDButtonPressed returns -1. | {
"resource": ""
} | ||
c169623 | validation | // Seek is implementation of io.Seeker's Seek.
//
// Note that Seek can take long since decoding is a relatively heavy task. | {
"resource": ""
} | ||
c169624 | validation | // MovePieceToLeft tries to move the piece to the left
// and returns the piece's next x position. | {
"resource": ""
} | ||
c169625 | validation | // RotatePieceRight tries to rotate the piece to the right
// and returns the piece's next angle. | {
"resource": ""
} | ||
c169626 | validation | // RotatePieceLeft tries to rotate the piece to the left
// and returns the piece's next angle. | {
"resource": ""
} | ||
c169627 | validation | // flushable returns a boolean value indicating whether
// there is a flushable line in the field. | {
"resource": ""
} | ||
c169628 | validation | // flushableLine returns a boolean value indicating whether
// the line j is flushabled or not. | {
"resource": ""
} | ||
c169629 | validation | // flushLine flushes the line j if possible, and if the line is flushed,
// the other lines above the line go down.
//
// flushLine returns a boolean value indicating whether
// the line is actually flushed. | {
"resource": ""
} | ||
c169630 | validation | // intersection calculates the intersection of given two lines. | {
"resource": ""
} | ||
c169631 | validation | // rayCasting returns a slice of line originating from point cx, cy and intersecting with objects | {
"resource": ""
} | ||
c169632 | validation | // Str takes a null-terminated Go string and returns its GL-compatible address.
// This function reaches into Go string storage in an unsafe way so the caller
// must ensure the string is not garbage collected. | {
"resource": ""
} | ||
c169633 | validation | // Read is implementation of io.Closer's Close. | {
"resource": ""
} | ||
c169634 | validation | // NewWorld creates a new world. | {
"resource": ""
} | ||
c169635 | validation | // init inits world with a random state. | {
"resource": ""
} | ||
c169636 | validation | // Update game state by one tick. | {
"resource": ""
} | ||
c169637 | validation | // Draw paints current game state. | {
"resource": ""
} | ||
c169638 | validation | // DrawLine draws a line segment on the given destination dst.
//
// DrawLine is intended to be used mainly for debugging or prototyping purpose. | {
"resource": ""
} | ||
c169639 | validation | // DrawRect draws a rectangle on the given destination dst.
//
// DrawRect is intended to be used mainly for debugging or prototyping purpose. | {
"resource": ""
} | ||
c169640 | validation | // NewGame generates a new Game object. | {
"resource": ""
} | ||
c169641 | validation | // Update updates the current game state. | {
"resource": ""
} | ||
c169642 | validation | // Draw draws the current game to the given screen. | {
"resource": ""
} | ||
c169643 | validation | // IsKeyJustReleased returns a boolean value indicating
// whether the given key is released just in the current frame.
//
// IsKeyJustReleased is concurrent safe. | {
"resource": ""
} | ||
c169644 | validation | // KeyPressDuration returns how long the key is pressed in frames.
//
// KeyPressDuration is concurrent safe. | {
"resource": ""
} | ||
c169645 | validation | // IsMouseButtonJustReleased returns a boolean value indicating
// whether the given mouse button is released just in the current frame.
//
// IsMouseButtonJustReleased is concurrent safe. | {
"resource": ""
} | ||
c169646 | validation | // MouseButtonPressDuration returns how long the mouse button is pressed in frames.
//
// MouseButtonPressDuration is concurrent safe. | {
"resource": ""
} | ||
c169647 | validation | // JustConnectedGamepadIDs returns gamepad IDs that are connected just in the current frame.
//
// JustConnectedGamepadIDs might return nil when there is no connected gamepad.
//
// JustConnectedGamepadIDs is concurrent safe. | {
"resource": ""
} | ||
c169648 | validation | // IsGamepadJustDisconnected returns a boolean value indicating
// whether the gamepad of the given id is released just in the current frame.
//
// IsGamepadJustDisconnected is concurrent safe. | {
"resource": ""
} | ||
c169649 | validation | // IsGamepadButtonJustPressed returns a boolean value indicating
// whether the given gamepad button of the gamepad id is pressed just in the current frame.
//
// IsGamepadButtonJustPressed is concurrent safe. | {
"resource": ""
} | ||
c169650 | validation | // IsGamepadButtonJustReleased returns a boolean value indicating
// whether the given gamepad button of the gamepad id is released just in the current frame.
//
// IsGamepadButtonJustReleased is concurrent safe. | {
"resource": ""
} | ||
c169651 | validation | // GamepadButtonPressDuration returns how long the gamepad button of the gamepad id is pressed in frames.
//
// GamepadButtonPressDuration is concurrent safe. | {
"resource": ""
} | ||
c169652 | validation | // JustPressedTouchIDs returns touch IDs that are created just in the current frame.
//
// JustPressedTouchIDs might return nil when there is not touch.
//
// JustPressedTouchIDs is concurrent safe. | {
"resource": ""
} | ||
c169653 | validation | // IsTouchJustReleased returns a boolean value indicating
// whether the given touch is released just in the current frame.
//
// IsTouchJustReleased is concurrent safe. | {
"resource": ""
} | ||
c169654 | validation | // TouchPressDuration returns how long the touch remains in frames.
//
// TouchPressDuration is concurrent safe. | {
"resource": ""
} | ||
c169655 | validation | // viewportSize must be called from the main thread. | {
"resource": ""
} | ||
c169656 | validation | // Loop starts the main-thread loop.
//
// Loop must be called on the main thread. | {
"resource": ""
} | ||
c169657 | validation | // Run calls f on the main thread.
//
// Do not call this from the main thread. This would block forever. | {
"resource": ""
} | ||
c169658 | validation | // InternalImageSize returns a nearest appropriate size as an internal image. | {
"resource": ""
} | ||
c169659 | validation | // square fills out with square wave values with the specified volume, frequency and sequence. | {
"resource": ""
} | ||
c169660 | validation | // playNote plays the note at scoreIndex of the score. | {
"resource": ""
} | ||
c169661 | validation | // pianoAt returns an i-th sample of piano with the given frequency. | {
"resource": ""
} | ||
c169662 | validation | // playNote plays piano sound with the given frequency. | {
"resource": ""
} | ||
c169663 | validation | // Draw draws the path by rendering its stroke or filling. | {
"resource": ""
} | ||
c169664 | validation | // String returns a string representation of GeoM. | {
"resource": ""
} | ||
c169665 | validation | // Reset resets the GeoM as identity. | {
"resource": ""
} | ||
c169666 | validation | // Concat multiplies a geometry matrix with the other geometry matrix.
// This is same as muptiplying the matrix other and the matrix g in this order. | {
"resource": ""
} | ||
c169667 | validation | // Rotate rotates the matrix by theta.
// The unit is radian. | {
"resource": ""
} | ||
c169668 | validation | // Invert inverts the matrix.
// If g is not invertible, Invert panics. | {
"resource": ""
} | ||
c169669 | validation | // ScaleGeo is deprecated as of 1.2.0-alpha. Use Scale instead. | {
"resource": ""
} | ||
c169670 | validation | // TranslateGeo is deprecated as of 1.2.0-alpha. Use Translate instead. | {
"resource": ""
} | ||
c169671 | validation | // RotateGeo is deprecated as of 1.2.0-alpha. Use Rotate instead. | {
"resource": ""
} | ||
c169672 | validation | // newFramebufferFromTexture creates a framebuffer from the given texture. | {
"resource": ""
} | ||
c169673 | validation | // newScreenFramebuffer creates a framebuffer for the screen. | {
"resource": ""
} | ||
c169674 | validation | // Returns whether or not the image is fully opaque. | {
"resource": ""
} | ||
c169675 | validation | // Write the actual image data to one or more IDAT chunks. | {
"resource": ""
} | ||
c169676 | validation | // This function is required because we want the zero value of
// Encoder.CompressionLevel to map to zlib.DefaultCompression. | {
"resource": ""
} | ||
c169677 | validation | // Encode writes the Image m to w in PNG format. Any Image may be
// encoded, but images that are not image.NRGBA might be encoded lossily. | {
"resource": ""
} | ||
c169678 | validation | // Encode writes the Image m to w in PNG format. | {
"resource": ""
} | ||
c169679 | validation | // NewImage creates an empty image with the given size.
//
// The returned image is cleared.
//
// Note that Dispose is not called automatically. | {
"resource": ""
} | ||
c169680 | validation | // NewScreenFramebufferImage creates a special image that framebuffer is one for the screen.
//
// The returned image is cleared.
//
// Note that Dispose is not called automatically. | {
"resource": ""
} | ||
c169681 | validation | // internalSize returns the size of the internal texture. | {
"resource": ""
} | ||
c169682 | validation | // makeStale makes the image stale. | {
"resource": ""
} | ||
c169683 | validation | // ReplacePixels replaces the image pixels with the given pixels slice.
//
// If pixels is nil, ReplacePixels clears the specified reagion. | {
"resource": ""
} | ||
c169684 | validation | // DrawTriangles draws a given image img to the image. | {
"resource": ""
} | ||
c169685 | validation | // appendDrawTrianglesHistory appends a draw-image history item to the image. | {
"resource": ""
} | ||
c169686 | validation | // makeStaleIfDependingOn makes the image stale if the image depends on target. | {
"resource": ""
} | ||
c169687 | validation | // readPixelsFromGPU reads the pixels from GPU and resolves the image's 'stale' state. | {
"resource": ""
} | ||
c169688 | validation | // resolveStale resolves the image's 'stale' state. | {
"resource": ""
} | ||
c169689 | validation | // dependsOn returns a boolean value indicating whether the image depends on target. | {
"resource": ""
} | ||
c169690 | validation | // dependingImages returns all images that is depended by the image. | {
"resource": ""
} | ||
c169691 | validation | // hasDependency returns a boolean value indicating whether the image depends on another image. | {
"resource": ""
} | ||
c169692 | validation | // Dispose disposes the image.
//
// After disposing, calling the function of the image causes unexpected results. | {
"resource": ""
} | ||
c169693 | validation | // IsInvalidated returns a boolean value indicating whether the image is invalidated.
//
// If an image is invalidated, GL context is lost and all the images should be restored asap. | {
"resource": ""
} | ||
c169694 | validation | // NewImage returns a new image.
//
// Note that the image is not initialized yet. | {
"resource": ""
} | ||
c169695 | validation | // Pixels returns the image's pixels.
// Pixels might return nil when OpenGL error happens. | {
"resource": ""
} | ||
c169696 | validation | // CopyPixels is basically same as Pixels and ReplacePixels, but reading pixels from GPU is done lazily. | {
"resource": ""
} | ||
c169697 | validation | // Pos returns the tile's current position.
// Pos is used only at testing so far. | {
"resource": ""
} | ||
c169698 | validation | // NextPos returns the tile's next position.
// NextPos is used only at testing so far. | {
"resource": ""
} | ||
c169699 | validation | // NewTile creates a new Tile object. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.