39 lines
859 B
C++
39 lines
859 B
C++
#pragma once
|
|
|
|
#include "state.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef unsigned int uint;
|
|
|
|
struct mesh {
|
|
uint vtx;
|
|
uint idx;
|
|
uint length;
|
|
};
|
|
|
|
void render(struct mesh paddle_mesh,
|
|
struct mesh brick_mesh,
|
|
struct mesh ball_mesh,
|
|
uint attrib_position,
|
|
uint attrib_texture,
|
|
uint attrib_normal,
|
|
uint uniform_trans,
|
|
uint uniform_normal_trans,
|
|
uint uniform_base_color,
|
|
uint uniform_light_pos,
|
|
struct game_state * state);
|
|
|
|
void render_font(struct mesh plane_mesh,
|
|
uint attrib_position,
|
|
uint attrib_texture,
|
|
uint attrib_normal,
|
|
uint uniform_trans,
|
|
uint uniform_texture0);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|