Home Page Toolkit Overview Using GML User Input Services Finger Tracker Calibrator Frame Grabber Service protocol Obtaining GML Installing GML Licence Developer Documentation Tcl/Tk API The GML Canvas Image processing Tcl Scripts Library List of Classes List of Files C/C++ API List of Classes List of Files |
gmlGL_TTexture Class Reference#include <gml_GL_Texture.h>
Collaboration diagram for gmlGL_TTexture: Detailed DescriptionAbstraction of OpenGL textures, that allows texture uploading from GML bitmaps.
Member Function Documentation
Release the GL resources used by this texture, if any. Can be called at any time.
Copy the specified region roi of the bitmap to the texture. The OpenGL texture may need to be re-created. If roi is NULL, use the whole bitmap. If persistent is false, this means that bitmap is not persistent and a private copy is made by the texture object. If true, the bitmap is considered persistent until the deletion of the texture object. Its early destruction will result un undefined behavior. Return an error code if the bitmap has unsupported characteristics. Can be called at any time.
Prepare to render the texture to OpenGL primitives. Equivalent to a call to glEnable and glBindTexture with the appropriate target. Note: if the current context is different from the last call to Enable(), the texture will be uploaded again.
Stop rendering the texture to OpenGL primitives. Equivalent to a call to glDisable with the appropriate target. The OpenGL context current when Enable() was called must be current.
Given pixel coordinates ix and iy in the bitmap, return in ox and oy the coordinates to be used in glTexCoord. Note: this is to take ordering and possible padding of the texture lines into account, as well as different coordinate conventions depending on the texture target used (GL_TEXTURE_2D or GL_TEXTURE_RECTANGLE_EXT). Can only be called after Upload().
Same as Coords, but with input coordinates normalized to the size of the bitmap's region of interest. Can only be called after Upload(). Returns the transparency parameter of the bitmap pixel at coordinates x, y. If x, y is out of range of the texture, return 0 (fully transparent). If the texture has no transparency information, return 1 (fully opaque). Note: The origin of bitmap coordinates is at the top left corner of the texture . Can only be called after Upload().
The documentation for this class was generated from the following files:
Generated on Tue Jun 12 14:03:28 2007 for gml by
Doxygen 1.5.2.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Contact: julien (dot) letessier (at) gmail (dot) com.
Copyright (c) 2000-2007 CLIPS-IMAG Laboratory, Grenoble, France. All rights reserved. W3CXHTML 1.0 W3CCSS 2.0 |