Platformer
Platformer
Public Member Functions | Private Attributes | List of all members
SDLTextureWrapper Class Reference

A wrapper class for SDL_Textures. More...

#include <SDLTextureWrapper.hpp>

Collaboration diagram for SDLTextureWrapper:
Collaboration graph

Public Member Functions

 SDLTextureWrapper (SDL_Texture *tex)
 Constructs an ~SDLTextureWrapper. More...
 
 ~SDLTextureWrapper ()
 Destructs an ~SDLTextureWrapper.
 
SDL_Texture * GetTex () const
 Gets the SDL_Texture of this wrapper. More...
 

Private Attributes

SDL_Texture * tex_
 The wrapped SDL_Texture.
 

Detailed Description

A wrapper class for SDL_Textures.

Constructor & Destructor Documentation

◆ SDLTextureWrapper()

SDLTextureWrapper::SDLTextureWrapper ( SDL_Texture *  tex)

Constructs an ~SDLTextureWrapper.

Parameters
texThe SDL_Texture to be wrapped

Member Function Documentation

◆ GetTex()

SDL_Texture * SDLTextureWrapper::GetTex ( ) const

Gets the SDL_Texture of this wrapper.

Returns
The texture

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