Skip to content

Commit

Permalink
moving templates around
Browse files Browse the repository at this point in the history
  • Loading branch information
joeld42 committed Jun 30, 2016
1 parent 2318b17 commit c0e7f8c
Show file tree
Hide file tree
Showing 18 changed files with 26 additions and 21 deletions.
4 changes: 2 additions & 2 deletions ld13_Crossroads/trunk/GLee.h
Expand Up @@ -757,8 +757,8 @@ GLEE_EXTERN GLboolean _GLEE_SGIX_texture_range;
#endif

#ifndef GL_ARB_vertex_buffer_object
typedef ptrdiff_t GLintptrARB;
typedef ptrdiff_t GLsizeiptrARB;
// typedef ptrdiff_t GLintptrARB;
// typedef ptrdiff_t GLsizeiptrARB;
#endif

#ifndef GL_ARB_shader_objects
Expand Down
1 change: 1 addition & 0 deletions ld13_Crossroads/trunk/Mesh.cpp
Expand Up @@ -68,6 +68,7 @@ GLuint LoadObjFile( const char *objfile )
glNormal3f( norms[nndx].x, norms[nndx].y, norms[nndx].z );
glTexCoord2f( sts[stndx].x, sts[stndx].y );
glVertex3f( verts[vndx].x, verts[vndx].y, verts[vndx].z );
// printf("%s : %f %f %f\n",objfile, verts[vndx].x, verts[vndx].y, verts[vndx].z );

ch = strtok( NULL, " " );
}
Expand Down
24 changes: 12 additions & 12 deletions ld13_Crossroads/trunk/ResourceFile.cpp
Expand Up @@ -14,20 +14,20 @@

std::string getResourceDir()
{
#ifdef __APPLE__
CFBundleRef mainBundle = CFBundleGetMainBundle();
CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL(mainBundle);
char path[PATH_MAX];
if (!CFURLGetFileSystemRepresentation(resourcesURL, TRUE, (UInt8 *)path, PATH_MAX))
{
// error!
}
CFRelease(resourcesURL);
// #ifdef __APPLE__
// CFBundleRef mainBundle = CFBundleGetMainBundle();
// CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL(mainBundle);
// char path[PATH_MAX];
// if (!CFURLGetFileSystemRepresentation(resourcesURL, TRUE, (UInt8 *)path, PATH_MAX))
// {
// // error!
// }
// CFRelease(resourcesURL);

return std::string(path);
#else
// return std::string(path);
//#else
return std::string("./gamedata");
#endif
//#endif
}

std::string gameDataFile( std::string subdir, std::string filename )
Expand Down
Binary file modified ld13_Crossroads/trunk/gamedata/tilefont.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ld19_discovery/bonsai.cpp
@@ -1,4 +1,4 @@
#include <luddite/GLee.h>
//#include <luddite/GLee.h>

#ifndef __APPLE__
# include <GL/gl.h>
Expand Down
12 changes: 8 additions & 4 deletions ld19_discovery/discovery_main.cpp
Expand Up @@ -10,10 +10,14 @@
# include <crtdbg.h>
#endif

#include <luddite/GLee.h>
#include <GL/gl.h>
#include <GL/glu.h>

// #include <luddite/GLee.h>
#ifndef __APPLE__
# include <GL/gl.h>
# include <GL/glu.h>
#else
# include <OpenGL/gl.h>
# include <OpenGL/glu.h>
#endif
// Luddite tools
#include <luddite/luddite.h>
#include <luddite/debug.h>
Expand Down
4 changes: 2 additions & 2 deletions ld33_urmonster/src/SceneRender.hx
Expand Up @@ -98,7 +98,7 @@ class SceneRender

public var shadowTexture_ : RenderTexture;

public var matcapTexture_ : Texture;
//public var matcapTexture_ : Texture;

public var texShadDepth_ : TextureID;
public var texShadDepthWrap : Texture;
Expand Down Expand Up @@ -413,7 +413,7 @@ class SceneRender

//SHAD
worldShader_.set_texture("tex1", texShadDepthWrap );
worldShader_.set_texture("tex2", matcapTexture_ );
//worldShader_.set_texture("tex2", matcapTexture_ );
Luxe.renderer.target = null;

drawScenePass( sceneCamera_, false );
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file modified simplejam_safetynet/simplejam2016_soup/assets/soup-assets.blend
Binary file not shown.
Binary file modified simplejam_safetynet/simplejam2016_soup/assets/soup-assets.blend1
Binary file not shown.

0 comments on commit c0e7f8c

Please sign in to comment.