Advertisement
Kondensator

LTexture.h

Jul 7th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include "Headers.h"
  4.  
  5. class LTexture
  6. {
  7. public:
  8.    
  9.     LTexture();
  10.    
  11.     ~LTexture();
  12.  
  13.     bool loadFromFile(std::string path);
  14.  
  15.     void free();
  16.  
  17.     void render(int x, int y);
  18.  
  19.     int getWidth();
  20.     int getHeight();
  21.  
  22. private:
  23.     SDL_Texture* mTexture;
  24.  
  25.     int mWidth;
  26.     int mHeight;
  27.  
  28. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement