-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathengine.h
35 lines (25 loc) · 1.09 KB
/
engine.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#include <stdio.h>
#include "SDL2/SDL.h"
#include "SDL2/SDL_mixer.h"
#include "SDL2/SDL_image.h"
#include "defines.h"
#include "vector2d.h"
bool EngineStart();
void EngineStop();
bool EngineCreateWindow (const char* title, int x, int y, int w, int h, unsigned long flags);
void EngineSetWindowTitle (const char* title);
bool EngineCreateRenderer (int index, unsigned long flags);
bool EngineInitAudio();
SDL_Texture* EngineLoadTexture (const char* fileName);
//SDL_Texture* EngineLoadTextureFromStrip (SDL_Texture* srcTexture, const SDL_Rect* srcRect);
void EngineRenderClear();
void EngineRenderImage (SDL_Texture* texture, const SDL_Rect* rect, bool flipX);
void EngineRenderImageEx (SDL_Texture* texture, const SDL_Rect* rect,
const double angle,
const SVector2f* center,
const SDL_RendererFlip flip);
void EngineRenderTile (SDL_Texture* tiles, const SDL_Rect* srcRect, const SDL_Rect* dstRect);
void EngineRenderPresent();
void EngineUpdateTime();
void EngineClearAllInstances();