Jopnal Engine  alpha 0.4
Simple Component Based 2D/3D Game Engine
Public Member Functions | Public Attributes | List of all members
jop::Texture::FormatBundle Class Reference

#include <Texture.hpp>

Public Member Functions

 FormatBundle (const Format format, const bool srgb)
 Initialize this bundle. More...
 
bool check () const
 Check if this format bundle is valid. More...
 

Public Attributes

const uint32 intFormat
 Internal format. More...
 
const uint32 format
 Format. More...
 
const uint32 type
 Type. More...
 

Detailed Description

Helper class for managing texture formats

Definition at line 108 of file Texture.hpp.

Constructor & Destructor Documentation

jop::Texture::FormatBundle::FormatBundle ( const Format  format,
const bool  srgb 
)

Initialize this bundle.

Parameters
formatThe texture format
srgbUse the sRGB color space?

Member Function Documentation

bool jop::Texture::FormatBundle::check ( ) const

Check if this format bundle is valid.

The format can usually only be invalid if the specific format is not supported by OpenGL.

Returns
True if valid

Member Data Documentation

const uint32 jop::Texture::FormatBundle::format

Format.

Definition at line 131 of file Texture.hpp.

const uint32 jop::Texture::FormatBundle::intFormat

Internal format.

Definition at line 130 of file Texture.hpp.

const uint32 jop::Texture::FormatBundle::type

Type.

Definition at line 132 of file Texture.hpp.


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