getting ready to add GL calls to ag.cc
git-svn-id: svn://anubis/anaglym/trunk@24 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
parent
0dfe8e5e98
commit
ccf24d1777
5
ag.cc
5
ag.cc
@ -7,6 +7,8 @@
|
||||
#include <lua.hpp>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glu.h>
|
||||
using namespace std;
|
||||
|
||||
namespace ag
|
||||
@ -99,13 +101,14 @@ namespace ag
|
||||
{
|
||||
string modelname = lua_tostring(L, -1);
|
||||
size_t pos = modelname.find_first_not_of(FILENAME_SAFE_CHARS);
|
||||
if (pos != string::npos)
|
||||
if (pos == string::npos)
|
||||
{
|
||||
string path = locateResource(modelname);
|
||||
if (path != "")
|
||||
{
|
||||
WFObj * obj = new WFObj();
|
||||
obj->load(path);
|
||||
GLuint dl = obj->render();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user