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