|
pgl
PrimitiveOpenGL3Dprimitivelibrary
|
Checkerboard texture. More...
#include <pgl.h>


Additional Inherited Members | |
Public Member Functions inherited from pgl::Texture | |
| 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. | |
Public Attributes inherited from pgl::Texture | |
| int | width = 0 |
| Texture width. Do not modify. | |
| int | height = 0 |
| Texture height. Do not modify. | |
Protected Types inherited from pgl::Texture | |
| typedef std::shared_ptr< GLuint > | GLuintPtr |
Protected Member Functions inherited from pgl::Texture | |
| 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. | |
Protected Attributes inherited from pgl::Texture | |
| GLuintPtr | texture_ = 0 |
| OpenGL texture identifier. | |
Checkerboard texture.
1.8.13