blob: d6686c3611f899d4d680d605a10bc817cd3cbec0 (
plain)
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
36
|
#include <raylib.h>
#include "texture_sys.h"
#include "shader_sys.h"
#include "script_sys.h"
int main()
{
InitWindow(640, 480, "Gunner Engine");
SetTargetFPS(60);
init_tex_sys();
init_shader_sys();
init_script_sys();
int femme = load_new_tex("assets/femme.png");
int grayscale = load_new_shader("assets/gs_full.glsl");
while(!WindowShouldClose()){
update_textures();
ClearBackground(WHITE);
BeginDrawing();
DrawText("Wow, boilerplate, my favorite.", 4, 4, 20, BLACK);
set_active_shader(grayscale);
draw_texture(femme, 40, 40);
reset_active_shader();
EndDrawing();
}
deinit_script_sys();
unload_active_textures();
unload_active_shaders();
CloseWindow();
return 0;
}
|