Clean Up
This commit is contained in:
@@ -47,23 +47,28 @@ namespace VideoEngine {
|
||||
SDL_Texture* SurfaceToTexture( SDL_Surface* surface );
|
||||
SDL_Surface* TextureToSurface( SDL_Texture* texture );
|
||||
|
||||
void CopyTexture( SDL_Texture* src, SDL_Texture* dst );
|
||||
void CopyTexture( SDL_Texture* src, SDL_Texture* dst, bool software = false);
|
||||
|
||||
SDL_Surface* CopySurface( SDL_Surface* src );
|
||||
|
||||
SDL_Surface* NewSurface( long int width = -1, long int height = -1 ) const;
|
||||
SDL_Texture* NewTexture( long int width = -1, long int height = -1, const unsigned long int access = SDL_TEXTUREACCESS_TARGET ) const;
|
||||
SDL_Texture* NewTexture( long int width = -1, long int height = -1, const bool copyRenderer = false, const unsigned long int access = SDL_TEXTUREACCESS_TARGET ) const;
|
||||
|
||||
void SetRenderTarget( SDL_Texture* target = nullptr );
|
||||
const bool AreEqual(SDL_Surface& one, SDL_Surface& two);
|
||||
|
||||
void SetRenderTarget(SDL_Renderer* renderer, SDL_Texture* target = nullptr);
|
||||
void SetRenderTarget(SDL_Texture* target = nullptr);
|
||||
void ResetRenderTarget();
|
||||
|
||||
///Sets
|
||||
|
||||
///Gets
|
||||
SDL_Renderer* getRenderer();
|
||||
SDL_Renderer* getRenderer();
|
||||
SDL_Renderer* getRendererCopy();
|
||||
|
||||
private:
|
||||
SDL_Renderer* mp_renderer;
|
||||
SDL_Renderer* mp_rendererSoftware;
|
||||
|
||||
static cRenderer* sp_inst;// = nullptr
|
||||
};/// END CLASS DEFINITION cRenderer
|
||||
|
||||
Reference in New Issue
Block a user