SDL SPOOKY PLATFORMER ENGINE  0.2.0
An implementation of a platformer using sdl, implemented using an entity component system and efficient collision management.
Public Member Functions | List of all members
TextureWrapper Struct Reference

#include <ResourceManager.hpp>

Public Member Functions

 TextureWrapper (const std::shared_ptr< SDL_Texture > &texture)
 
SDL_Texture * get () const
 

Detailed Description

Wrapper for textures to ensure proper cleanup.

Constructor & Destructor Documentation

TextureWrapper::TextureWrapper ( const std::shared_ptr< SDL_Texture > &  texture)
inline

Constructs a texture wrapper.

Parameters
texturethe texture to wrap.

Member Function Documentation

SDL_Texture* TextureWrapper::get ( ) const
inline

Gets the underlying texture.


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