64 unsigned char *
getPixels() const noexcept {
return m_data.get();}
75 static void saveFrameBufferToFile(
const std::string &_fname,
int _x,
int _y,
int _width,
int _height,
ImageModes _mode=ImageModes::RGB);
107 Colour getColour(
const Real _uvX,
const Real _uvY)
const noexcept;
114 std::unique_ptr <unsigned char[] >
m_data;
138 bool m_hasAlpha=
false;
simple class to hold colour information and set the basic opengl colour state. also has overloaded me...
a simple colour class for RGBA colour
main definition of types and namespace
implementation files for RibExport class
GLuint format() const noexcept
Get the pixel format.
GLuint channels() const noexcept
gets the number of channels
PRECISION Real
create a variable called Real which is the main data type we use (GLfloat for most cases) ...
GLuint width() const noexcept
Get the width of the texture.
unsigned char * getPixels() const noexcept
raw access to unsigned char pixel data
std::unique_ptr< unsigned char[] > m_data
the actual image data loaded packed in r,g,b,(a) format in contiguous memory stored in a smart_pointe...
GLsizei const GLchar *const * string
GLuint height() const noexcept
Get the height of the texture.
ImageModes
save the FrameBuffer to file using current built in I/O