Skip to content
Snippets Groups Projects
Commit 5c45fdb7 authored by neil's avatar neil
Browse files

Remove unused variable; create a useshader header to declare useShader function

git-svn-id: http://svn.net-core.org/repos/t-engine4@906 51575b47-30f0-44d4-a5cc-537603b46e54
parent bf681f84
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@
#include "SFMT.h"
#include "mzip.h"
#include "main.h"
#include "useshader.h"
#include <math.h>
#include <time.h>
......@@ -601,7 +602,6 @@ static int sdl_new_tile(lua_State *L)
int alpha = luaL_checknumber(L, 13);
SDL_Color color = {r,g,b};
SDL_Color bcolor = {0,0,0};
SDL_Surface *txt = TTF_RenderUTF8_Blended(*f, str, color);
SDL_Surface **s = (SDL_Surface**)lua_newuserdata(L, sizeof(SDL_Surface*));
......
......@@ -29,9 +29,7 @@
#include "main.h"
#include "script.h"
//#include "shaders.h"
extern bool shaders_active;
extern void useShader(GLuint p, int x, int y, int w, int h, float r, float g, float b, float a);
#include "useshader.h"
static int map_object_new(lua_State *L)
{
......
extern bool shaders_active;
extern void useShader(GLuint p, int x, int y, int w, int h, float r, float g, float b, float a);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment