video.gltexture - ICE 0.1 API documentation

ICE 0.1 API documentation

# video.gltexture

OpenGL texture handle.

struct GLTexture;

  OpenGL texture struct. Texture data is stored by texture page the texture is on.

  Rectf texCoords;

    Texture coordinates.

  Vector2u offset;

    Offset relative to the page.

  uint pageIndex;

    Index of the page.

  pure this(ref const(Rect!(uint)) pageArea, const(Vector2!(uint)) pageSize, const(uint) pageIndex);

    Construct a GLTexture.

    Parameters:

    const(Rect!(uint)) pageArea | Area taken by the texture on the texture page.
    const(Vector2!(uint)) pageSize | Size of the page in pixels.
    const(uint) pageIndex | Index if the texture page.

Copyright © Ferdinand Majerech 2011. | Page generated by AutoDDoc and Ddoc.