forked from azekillDIABLO/omicron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrendering.h
34 lines (31 loc) · 1.59 KB
/
rendering.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
#ifndef _rendering_h_
#define _rendering_h_
#include <GL/glew.h>
#include "attrib.h"
#include "chunk.h"
#include "player.h"
GLuint gen_plant_buffer(float x, float y, float z, float n, int w);
GLuint gen_player_buffer(float x, float y, float z, float rx, float ry);
GLuint gen_text_buffer(float x, float y, float n, char *text);
GLuint gen_ui_buffer(float x, float y, float n, char spritesheet_index);
GLuint gen_logo_buffer(float x, float y, float n, char spritesheet_index);
//GLuint gen_background_buffer(float x, float y, float n, char spritesheet_index);
void draw_triangles_3d_ao(Attrib *attrib, GLuint buffer, int count);
void draw_triangles_3d_text(Attrib *attrib, GLuint buffer, int count);
void draw_triangles_3d(Attrib *attrib, GLuint buffer, int count);
void draw_triangles_2d(Attrib *attrib, GLuint buffer, int count);
void draw_lines(Attrib *attrib, GLuint buffer, int components, int count);
void draw_chunk(Attrib *attrib, Chunk *chunk);
void draw_item(Attrib *attrib, GLuint buffer, int count);
void draw_text(Attrib *attrib, GLuint buffer, int length);
void draw_signs(Attrib *attrib, Chunk *chunk);
void draw_sign(Attrib *attrib, GLuint buffer, int length);
void draw_cube(Attrib *attrib, GLuint buffer);
void draw_plant(Attrib *attrib, GLuint buffer);
void draw_player(Attrib *attrib, Player *player);
void draw_ui(Attrib *attrib, GLuint buffer);
void draw_logo(Attrib *attrib, GLuint buffer);
void render_text(Attrib *attrib, int justify, float x, float y, float n, char *text,
int win_width, int win_height);
void render_crosshairs(Attrib *attrib, int width, int height, int scale);
#endif