naev
0.12.5
src
nlua_canvas.h
1
/*
2
* See Licensing and Copyright notice in naev.h
3
*/
4
#pragma once
5
6
#include "nlua.h"
7
8
#include "opengl.h"
9
10
#define CANVAS_METATABLE "canvas"
11
15
typedef
struct
LuaCanvas_s {
16
GLuint
fbo
;
17
glTexture
*
tex
;
18
GLuint
depth
;
19
}
LuaCanvas_t
;
20
21
/*
22
* Library loading
23
*/
24
int
nlua_loadCanvas( nlua_env env );
25
26
/* Basic operations. */
27
LuaCanvas_t
*lua_tocanvas( lua_State *L,
int
ind );
28
LuaCanvas_t
*luaL_checkcanvas( lua_State *L,
int
ind );
29
LuaCanvas_t
*lua_pushcanvas( lua_State *L,
LuaCanvas_t
canvas );
30
int
lua_iscanvas( lua_State *L,
int
ind );
31
32
/*
33
* Misc helpers.
34
*/
35
int
canvas_new(
LuaCanvas_t
*lc,
int
w,
int
h );
36
void
canvas_reset(
void
);
LuaCanvas_t
Wrapper to canvass.
Definition
nlua_canvas.h:15
LuaCanvas_t::fbo
GLuint fbo
Definition
nlua_canvas.h:16
LuaCanvas_t::tex
glTexture * tex
Definition
nlua_canvas.h:17
LuaCanvas_t::depth
GLuint depth
Definition
nlua_canvas.h:18
glTexture
Abstraction for rendering sprite sheets.
Definition
opengl_tex.h:43
Generated by
1.14.0