Rose
Public Member Functions | List of all members
rose::sdl::PixelFormat Class Reference

An encapsulation of an SDL_PixelFormat. More...

#include <Texture.h>

Inheritance diagram for rose::sdl::PixelFormat:
Inheritance graph
[legend]
Collaboration diagram for rose::sdl::PixelFormat:
Collaboration graph
[legend]

Public Member Functions

 PixelFormat (SDL_PixelFormat *sdlPixelFormat)
 Constructor. More...
 
 PixelFormat (SDL_PixelFormatEnum format)
 Constructor. More...
 

Detailed Description

An encapsulation of an SDL_PixelFormat.

Constructor & Destructor Documentation

◆ PixelFormat() [1/2]

rose::sdl::PixelFormat::PixelFormat ( SDL_PixelFormat *  sdlPixelFormat)
inlineexplicit

Constructor.

Parameters
sdlPixelFormatAn existing SDL_PixelFormat structure.

The SDL_PixelFormat structure becomes owned by the PixelFormat class and will be freed when the PixelFormat goes out of scop.

◆ PixelFormat() [2/2]

rose::sdl::PixelFormat::PixelFormat ( SDL_PixelFormatEnum  format)
inlineexplicit

Constructor.

Parameters
formatThe pixel format, a value from SDL_PixelFormatEnum.

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