SDL Minigame
1.0
Loading...
Searching...
No Matches
GameObject.h
1
#pragma once
2
#include <SDL.h>
3
4
class
GameObject
5
{
6
public
:
7
GameObject
(
const
char
* texturesheet,
int
x,
int
y);
8
~GameObject
() =
default
;
9
10
void
update();
11
void
render();
12
13
private
:
14
int
xPos;
15
int
yPos;
16
17
SDL_Texture* objTexture;
18
SDL_Rect srcRect;
19
SDL_Rect destRect;
20
};
21
GameObject
Definition
GameObject.h:5
include
GameObject.h
Generated by
1.10.0