Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#pragma once
#include "SDL.h"
#include "SDL_image.h"
#include <string>
#include <iostream>
class Object {
private:
//// destination , source ////
SDL_Rect dest;
SDL_Rect src;
//// texture ////
SDL_Texture* tex;
public:
Object() {}
//// get destination ////
SDL_Rect getDest() const { return dest; }
//// get source ////
SDL_Rect getSource() const { return src; }
//// set destination ////
void setDest(int x, int y, int w, int h);
//// set source ////
void setSource(int x, int y, int w, int h);
//// set image( image file , renderer) ////
void setImage(const char* fileName, SDL_Renderer* ren);
//// get texture ////
SDL_Texture* getTex() const { return tex; }
};