pgl
PrimitiveOpenGL3Dprimitivelibrary
|
Checkerboard texture. More...
#include <pgl.h>
Additional Inherited Members | |
![]() | |
Texture (int width, int height, unsigned char *data, bool interpolate=false) | |
Loads texture data from existing RGB array. Data can be discarded afterwards. | |
Texture (const std::string &file, bool interpolate=true) | |
Loads texture from Portable Pixmap (PPM) file. | |
operator bool () const | |
Returns whether texture is valid. | |
void | bind () const |
Use this texture as the current OpenGL 2D texture. | |
![]() | |
int | width = 0 |
Texture width. Do not modify. | |
int | height = 0 |
Texture height. Do not modify. | |
![]() | |
typedef std::shared_ptr< GLuint > | GLuintPtr |
![]() | |
void | make (int _width, int _height, unsigned char *data, bool interpolate) |
void | eatcomments (std::ifstream &ifs) |
int | readint (std::ifstream &ifs) |
Read integer value from PPM file, ignoring comments and whitespace. | |
![]() | |
GLuintPtr | texture_ = 0 |
OpenGL texture identifier. | |
Checkerboard texture.