CVB++ 14.1
OpenGLBufferFormat Class Reference

Buffer format description for a texture to hold the pixel data. More...

#include <cvb/ui/ui.hpp>

Public Member Functions

bool operator== (const OpenGLBufferFormat &bufferFormat) const noexcept
 
bool operator!= (const OpenGLBufferFormat &bufferFormat) const noexcept
 

Public Attributes

int Width = 0
 
int Height = 0
 
int LinePad = 0
 
OpenGLTextureFormat TextureFormat = OpenGLTextureFormat::Unknown
 

Detailed Description

Buffer format description for a texture to hold the pixel data.

Member Function Documentation

◆ operator!=()

bool operator!= ( const OpenGLBufferFormat bufferFormat) const
inlinenoexcept
Parameters
[in]bufferFormat
Returns
true if this buffer format has not the same member values as bufferFormat; otherwise returns false.
Exceptions
Doesnot throw any exception.

◆ operator==()

bool operator== ( const OpenGLBufferFormat bufferFormat) const
inlinenoexcept
Parameters
[in]bufferFormat
Returns
true if this buffer format has the same member values as bufferFormat; otherwise returns false.
Exceptions
Doesnot throw any exception.

Member Data Documentation

◆ Height

int Height = 0

Pixel height of the texture.

◆ LinePad

int LinePad = 0

Number of extra bytes required to archive 4 byte scan line alignment.

◆ TextureFormat

Texture format, respectively the color format used to upload and draw the pixel data.

◆ Width

int Width = 0

Pixel width of the texture.