pgl
PrimitiveOpenGL3Dprimitivelibrary
List of all members
pgl::Checkerboard4x4 Class Reference

Checkerboard texture. More...

#include <pgl.h>

Inheritance diagram for pgl::Checkerboard4x4:
Inheritance graph
[legend]
Collaboration diagram for pgl::Checkerboard4x4:
Collaboration graph
[legend]

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.
 

Detailed Description

Checkerboard texture.


The documentation for this class was generated from the following file: