naev 0.11.5
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"
19typedef struct LuaCanvas_s {
20 GLuint fbo;
23
24/*
25 * Library loading
26 */
27int nlua_loadCanvas( nlua_env env );
28
29/* Basic operations. */
30LuaCanvas_t* lua_tocanvas( lua_State *L, int ind );
31LuaCanvas_t* luaL_checkcanvas( lua_State *L, int ind );
32LuaCanvas_t* lua_pushcanvas( lua_State *L, LuaCanvas_t canvas );
33int lua_iscanvas( lua_State *L, int ind );
34
35/*
36 * Misc helpers.
37 */
38int canvas_new( LuaCanvas_t *lc, int w, int h );
39void canvas_reset (void);
Wrapper to canvass.
Definition nlua_canvas.h:19
glTexture * tex
Definition nlua_canvas.h:21
Abstraction for rendering sprite sheets.
Definition opengl_tex.h:36