- Reestructuración de ficheros y directorios general
- merge v0.01 --> Añadido fileselector - Añadidas fuentes de Gem y Pure Data - pix2jpg incluído en Gem. Archivos de construcción de Gem modificados. - Añadido fichero ompiling.txt con instrucciones de compilación
This commit is contained in:
parent
c9adfd020b
commit
e85d191b46
3100 changed files with 775434 additions and 3073 deletions
42
Gem/plugins/modelOBJ/Makefile.am
Normal file
42
Gem/plugins/modelOBJ/Makefile.am
Normal file
|
@ -0,0 +1,42 @@
|
|||
|
||||
ACLOCAL_AMFLAGS = -I $(top_srcdir)/m4
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/src @GEM_EXTERNAL_CPPFLAGS@
|
||||
|
||||
EXTRA_DIST =
|
||||
EXTRA_DIST += win-vs2003/modelOBJ.sln win-vs2003/modelOBJ.vcproj
|
||||
EXTRA_DIST += win-vs2008/modelOBJ.sln win-vs2008/modelOBJ.vcproj
|
||||
|
||||
pkglib_LTLIBRARIES= gem_modelOBJ.la
|
||||
|
||||
gem_modelOBJ_la_CXXFLAGS =
|
||||
gem_modelOBJ_la_LDFLAGS = -module -avoid-version -shared
|
||||
if WINDOWS
|
||||
gem_modelOBJ_la_LDFLAGS += -no-undefined
|
||||
endif
|
||||
gem_modelOBJ_la_LIBADD =
|
||||
|
||||
# RTE
|
||||
gem_modelOBJ_la_CXXFLAGS += @GEM_RTE_CFLAGS@ @GEM_ARCH_CXXFLAGS@
|
||||
gem_modelOBJ_la_LDFLAGS += @GEM_RTE_LIBS@ @GEM_ARCH_LDFLAGS@
|
||||
# flags for building Gem externals
|
||||
gem_modelOBJ_la_CXXFLAGS += @GEM_EXTERNAL_CFLAGS@
|
||||
gem_modelOBJ_la_LIBADD += -L$(top_builddir) @GEM_EXTERNAL_LIBS@
|
||||
# gem_modelOBJ_la @MOREFLAGS@
|
||||
|
||||
# Dependencies
|
||||
gem_modelOBJ_la_CXXFLAGS += @GL_CFLAGS@
|
||||
gem_modelOBJ_la_LIBADD += @GL_LIBS@
|
||||
|
||||
|
||||
|
||||
# convenience symlinks
|
||||
include $(srcdir)/../symlink_ltlib.mk
|
||||
|
||||
|
||||
### SOURCES
|
||||
gem_modelOBJ_la_SOURCES= \
|
||||
modelOBJ.cpp \
|
||||
modelOBJ.h \
|
||||
model_loader.cpp \
|
||||
model_loader.h
|
||||
|
193
Gem/plugins/modelOBJ/modelOBJ.cpp
Normal file
193
Gem/plugins/modelOBJ/modelOBJ.cpp
Normal file
|
@ -0,0 +1,193 @@
|
|||
////////////////////////////////////////////////////////
|
||||
//
|
||||
// GEM - Graphics Environment for Multimedia
|
||||
//
|
||||
// zmoelnig@iem.kug.ac.at
|
||||
//
|
||||
// Implementation file
|
||||
//
|
||||
// Copyright (c) 2001-2012 IOhannes m zmölnig. forum::für::umläute. IEM. zmoelnig@iem.at
|
||||
// For information on usage and redistribution, and for a DISCLAIMER OF ALL
|
||||
// WARRANTIES, see the file, "GEM.LICENSE.TERMS" in this distribution.
|
||||
//
|
||||
/////////////////////////////////////////////////////////
|
||||
|
||||
#include "modelOBJ.h"
|
||||
#include "plugins/PluginFactory.h"
|
||||
#include "Gem/RTE.h"
|
||||
#include "Gem/Exception.h"
|
||||
|
||||
#include "Gem/Properties.h"
|
||||
#include <string>
|
||||
|
||||
using namespace gem::plugins;
|
||||
|
||||
REGISTER_MODELLOADERFACTORY("OBJ", modelOBJ);
|
||||
|
||||
modelOBJ :: modelOBJ(void) :
|
||||
m_model(NULL), m_dispList(0),
|
||||
m_material(0),
|
||||
m_flags(GLM_SMOOTH | GLM_TEXTURE),
|
||||
m_group(0),
|
||||
m_rebuild(false),
|
||||
m_currentH(1.f), m_currentW(1.f),
|
||||
m_textype(GLM_TEX_DEFAULT),
|
||||
m_reverse(false)
|
||||
{
|
||||
}
|
||||
|
||||
modelOBJ ::~modelOBJ(void) {
|
||||
destroy();
|
||||
}
|
||||
|
||||
bool modelOBJ :: open(const std::string&name, const gem::Properties&requestprops) {
|
||||
destroy();
|
||||
|
||||
#if 0
|
||||
std::vector<std::string>keys=requestprops.keys();
|
||||
unsigned int i;
|
||||
for(i=0; i<keys.size(); i++) {
|
||||
post("key[%d]=%s", i, keys[i].c_str());
|
||||
}
|
||||
#endif
|
||||
|
||||
m_model = glmReadOBJ(name.c_str());
|
||||
if (!m_model){
|
||||
return false;
|
||||
}
|
||||
m_reverse=false;
|
||||
|
||||
double d=1;
|
||||
requestprops.get("rescale", d);
|
||||
if(d)glmUnitize(m_model);
|
||||
|
||||
glmFacetNormals (m_model);
|
||||
|
||||
gem::Properties props=requestprops;
|
||||
if(gem::Properties::UNSET==requestprops.type("smooth")) {
|
||||
props.set("smooth", 0.5);
|
||||
}
|
||||
setProperties(props);
|
||||
|
||||
glmTexture(m_model, m_textype, 1,1);
|
||||
m_rebuild=true;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool modelOBJ :: render(void) {
|
||||
if(m_rebuild) {
|
||||
glmTexture(m_model, m_textype, 1,1);
|
||||
compile();
|
||||
}
|
||||
if(m_dispList)
|
||||
glCallList(m_dispList);
|
||||
|
||||
return (0!=m_dispList);
|
||||
}
|
||||
void modelOBJ :: close(void) {
|
||||
destroy();
|
||||
}
|
||||
|
||||
bool modelOBJ :: enumProperties(gem::Properties&readable,
|
||||
gem::Properties&writeable) {
|
||||
readable.clear();
|
||||
writeable.clear();
|
||||
return false;
|
||||
}
|
||||
|
||||
void modelOBJ :: setProperties(gem::Properties&props) {
|
||||
double d;
|
||||
|
||||
if(props.get("smooth", d)) {
|
||||
if(d<0.)d=0.;
|
||||
if(d>1.)d=1.;
|
||||
if(m_model)
|
||||
glmVertexNormals(m_model, d*180.);
|
||||
m_rebuild=true;
|
||||
}
|
||||
if(props.get("texwidth", d)) {
|
||||
if(d!=m_currentW)
|
||||
m_rebuild=true;
|
||||
|
||||
m_currentW=d;
|
||||
}
|
||||
if(props.get("texheight", d)) {
|
||||
if(d!=m_currentH)
|
||||
m_rebuild=true;
|
||||
m_currentH=d;
|
||||
}
|
||||
if(props.get("usematerials", d)) {
|
||||
int flags=GLM_SMOOTH | GLM_TEXTURE;
|
||||
if(d)
|
||||
flags |= GLM_MATERIAL;
|
||||
|
||||
if(flags!=m_flags)
|
||||
m_rebuild=true;
|
||||
m_flags=flags;
|
||||
}
|
||||
|
||||
|
||||
std::string s;
|
||||
if(props.get("textype", s)) {
|
||||
if("UV"==s)
|
||||
m_textype= GLM_TEX_UV;
|
||||
else if("linear"==s)
|
||||
m_textype= GLM_TEX_LINEAR;
|
||||
else if("spheremap"==s)
|
||||
m_textype= GLM_TEX_SPHEREMAP;
|
||||
|
||||
m_rebuild=true;
|
||||
}
|
||||
|
||||
if(props.get("group", d)) {
|
||||
m_group=d;
|
||||
m_rebuild=true;
|
||||
}
|
||||
|
||||
if(props.get("reverse", d)) {
|
||||
// LATER:move this to compile()
|
||||
bool reverse=d;
|
||||
if((reverse!=m_reverse) && m_model) {
|
||||
glmReverseWinding(m_model);
|
||||
m_rebuild=true;
|
||||
}
|
||||
m_reverse=reverse;
|
||||
}
|
||||
}
|
||||
void modelOBJ :: getProperties(gem::Properties&props) {
|
||||
props.clear();
|
||||
}
|
||||
|
||||
|
||||
bool modelOBJ :: compile(void) {
|
||||
if(!m_model) return false;
|
||||
if(!(GLEW_VERSION_1_1)) {
|
||||
// verbose(1, "cannot build display-list now...do you have a window?");
|
||||
return false;
|
||||
}
|
||||
if (m_dispList) {
|
||||
glDeleteLists(m_dispList, 1);
|
||||
m_dispList=0;
|
||||
}
|
||||
|
||||
if (!m_group){
|
||||
m_dispList = glmList(m_model, m_flags);
|
||||
} else {
|
||||
m_dispList = glmListGroup(m_model, m_flags, m_group);
|
||||
}
|
||||
bool res = (0 != m_dispList);
|
||||
if(res) m_rebuild=false;
|
||||
return res;
|
||||
}
|
||||
void modelOBJ :: destroy(void) {
|
||||
/* LATER: check valid contexts (remove glDelete from here) */
|
||||
if (m_dispList) {
|
||||
// destroy display list
|
||||
glDeleteLists(m_dispList, 1);
|
||||
m_dispList = 0;
|
||||
}
|
||||
if(m_model) {
|
||||
glmDelete(m_model);
|
||||
m_model=NULL;
|
||||
}
|
||||
}
|
73
Gem/plugins/modelOBJ/modelOBJ.h
Normal file
73
Gem/plugins/modelOBJ/modelOBJ.h
Normal file
|
@ -0,0 +1,73 @@
|
|||
/* -----------------------------------------------------------------
|
||||
|
||||
GEM - Graphics Environment for Multimedia
|
||||
|
||||
Load an asset (like .obj oder .dxf)
|
||||
|
||||
Copyright (c) 2001-2012 IOhannes m zmölnig. forum::für::umläute. IEM. zmoelnig@iem.at
|
||||
For information on usage and redistribution, and for a DISCLAIMER OF ALL
|
||||
WARRANTIES, see the file, "GEM.LICENSE.TERMS" in this distribution.
|
||||
|
||||
-----------------------------------------------------------------*/
|
||||
|
||||
#ifndef _INCLUDE__GEMPLUGIN__MODELOBJ_MODELOBJ_H_
|
||||
#define _INCLUDE__GEMPLUGIN__MODELOBJ_MODELOBJ_H_
|
||||
|
||||
#include "plugins/modelloader.h"
|
||||
#include "model_loader.h"
|
||||
|
||||
/*-----------------------------------------------------------------
|
||||
-------------------------------------------------------------------
|
||||
CLASS
|
||||
modelOBJ
|
||||
|
||||
loads an Alias WaveFront .obj file as an asset
|
||||
|
||||
KEYWORDS
|
||||
asset model
|
||||
|
||||
-----------------------------------------------------------------*/
|
||||
|
||||
namespace gem { namespace plugins {
|
||||
class GEM_EXPORT modelOBJ : public gem::plugins::modelloader {
|
||||
public:
|
||||
/////////
|
||||
// ctor/dtor
|
||||
modelOBJ(void);
|
||||
virtual ~modelOBJ(void);
|
||||
|
||||
virtual bool isThreadable(void) { return true; }
|
||||
|
||||
//////////
|
||||
// open/close an asset
|
||||
virtual bool open(const std::string&, const gem::Properties&);
|
||||
virtual void close(void);
|
||||
|
||||
//////////
|
||||
// render the asset
|
||||
virtual bool render(void);
|
||||
virtual bool compile(void);
|
||||
|
||||
//////////
|
||||
// property handling
|
||||
virtual bool enumProperties(gem::Properties&, gem::Properties&);
|
||||
virtual void setProperties(gem::Properties&);
|
||||
virtual void getProperties(gem::Properties&);
|
||||
|
||||
protected:
|
||||
virtual void destroy(void);
|
||||
bool m_rebuild;
|
||||
|
||||
GLMmodel *m_model;
|
||||
GLint m_dispList;
|
||||
|
||||
int m_material;
|
||||
int m_flags;
|
||||
int m_group;
|
||||
float m_currentH, m_currentW;
|
||||
glmtexture_t m_textype;
|
||||
bool m_reverse;
|
||||
};
|
||||
};}; // namespace gem::plugins
|
||||
|
||||
#endif // for header file
|
2153
Gem/plugins/modelOBJ/model_loader.cpp
Normal file
2153
Gem/plugins/modelOBJ/model_loader.cpp
Normal file
File diff suppressed because it is too large
Load diff
265
Gem/plugins/modelOBJ/model_loader.h
Normal file
265
Gem/plugins/modelOBJ/model_loader.h
Normal file
|
@ -0,0 +1,265 @@
|
|||
/*
|
||||
glm.h
|
||||
Nate Robins, 1997, 2000
|
||||
nate@pobox.com, http://www.pobox.com/~nate
|
||||
|
||||
Wavefront OBJ model file format reader/writer/manipulator.
|
||||
|
||||
Includes routines for generating smooth normals with
|
||||
preservation of edges, welding redundant vertices & texture
|
||||
coordinate generation (spheremap and planar projections) + more.
|
||||
|
||||
*/
|
||||
#ifndef GLM_H
|
||||
#define GLM_H
|
||||
|
||||
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
||||
#ifdef __ppc__
|
||||
#include "Utils/Functions.h"
|
||||
#undef sqrt
|
||||
#define sqrt fast_sqrtf
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "Gem/GemGL.h"
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.14159265f
|
||||
#endif
|
||||
|
||||
#define GLM_NONE (0) /* render with only vertices */
|
||||
#define GLM_FLAT (1 << 0) /* render with facet normals */
|
||||
#define GLM_SMOOTH (1 << 1) /* render with vertex normals */
|
||||
#define GLM_TEXTURE (1 << 2) /* render with texture coords */
|
||||
#define GLM_COLOR (1 << 3) /* render with colors */
|
||||
#define GLM_MATERIAL (1 << 4) /* render with materials */
|
||||
|
||||
/*
|
||||
* types of texturing the model
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
GLM_TEX_DEFAULT,
|
||||
GLM_TEX_UV,
|
||||
GLM_TEX_LINEAR,
|
||||
GLM_TEX_SPHEREMAP
|
||||
} glmtexture_t;
|
||||
|
||||
typedef struct _GLMmodel GLMmodel;
|
||||
|
||||
/* glmUnitize: "unitize" a model by translating it to the origin and
|
||||
* scaling it to fit in a unit cube around the origin. Returns the
|
||||
* scalefactor used.
|
||||
*
|
||||
* model - properly initialized GLMmodel structure
|
||||
*/
|
||||
GLfloat
|
||||
glmUnitize(GLMmodel* model);
|
||||
|
||||
/* glmDimensions: Calculates the dimensions (width, height, depth) of
|
||||
* a model.
|
||||
*
|
||||
* model - initialized GLMmodel structure
|
||||
* dimensions - array of 3 GLfloats (GLfloat dimensions[3])
|
||||
*/
|
||||
GLvoid
|
||||
glmDimensions(const GLMmodel* model, GLfloat* dimensions);
|
||||
|
||||
/* glmScale: Scales a model by a given amount.
|
||||
*
|
||||
* model - properly initialized GLMmodel structure
|
||||
* scale - scalefactor (0.5 = half as large, 2.0 = twice as large)
|
||||
*/
|
||||
GLvoid
|
||||
glmScale(GLMmodel* model, GLfloat scale);
|
||||
|
||||
/* glmReverseWinding: Reverse the polygon winding for all polygons in
|
||||
* this model. Default winding is counter-clockwise. Also changes
|
||||
* the direction of the normals.
|
||||
*
|
||||
* model - properly initialized GLMmodel structure
|
||||
*/
|
||||
GLvoid
|
||||
glmReverseWinding(GLMmodel* model);
|
||||
|
||||
/* glmFacetNormals: Generates facet normals for a model (by taking the
|
||||
* cross product of the two vectors derived from the sides of each
|
||||
* triangle). Assumes a counter-clockwise winding.
|
||||
*
|
||||
* model - initialized GLMmodel structure
|
||||
*/
|
||||
GLvoid
|
||||
glmFacetNormals(GLMmodel* model);
|
||||
|
||||
/* glmVertexNormals: Generates smooth vertex normals for a model.
|
||||
* First builds a list of all the triangles each vertex is in. Then
|
||||
* loops through each vertex in the the list averaging all the facet
|
||||
* normals of the triangles each vertex is in. Finally, sets the
|
||||
* normal index in the triangle for the vertex to the generated smooth
|
||||
* normal. If the dot product of a facet normal and the facet normal
|
||||
* associated with the first triangle in the list of triangles the
|
||||
* current vertex is in is greater than the cosine of the angle
|
||||
* parameter to the function, that facet normal is not added into the
|
||||
* average normal calculation and the corresponding vertex is given
|
||||
* the facet normal. This tends to preserve hard edges. The angle to
|
||||
* use depends on the model, but 90 degrees is usually a good start.
|
||||
*
|
||||
* model - initialized GLMmodel structure
|
||||
* angle - maximum angle (in degrees) to smooth across
|
||||
*/
|
||||
GLvoid
|
||||
glmVertexNormals(GLMmodel* model, GLfloat angle);
|
||||
|
||||
/* glmTexture: setup texture coordinates according to the specified type
|
||||
* some types (like UV) are read from files, whereas others might be generated
|
||||
* a "default" type will try to use saved texcoords and fallback to generated
|
||||
*
|
||||
* model - pointer to initialized GLMmodel structure
|
||||
*/
|
||||
GLvoid
|
||||
glmTexture(GLMmodel* model, glmtexture_t type=GLM_TEX_DEFAULT, float h=1.0, float w=1.0);
|
||||
|
||||
/* glmDelete: Deletes a GLMmodel structure.
|
||||
*
|
||||
* model - initialized GLMmodel structure
|
||||
*/
|
||||
GLvoid
|
||||
glmDelete(GLMmodel* model);
|
||||
|
||||
/* glmReadOBJ: Reads a model description from a Wavefront .OBJ file.
|
||||
* Returns a pointer to the created object which should be free'd with
|
||||
* glmDelete().
|
||||
*
|
||||
* filename - name of the file containing the Wavefront .OBJ format data.
|
||||
*/
|
||||
GLMmodel*
|
||||
glmReadOBJ(const char* filename);
|
||||
|
||||
/* glmWriteOBJ: Writes a model description in Wavefront .OBJ format to
|
||||
* a file.
|
||||
*
|
||||
* model - initialized GLMmodel structure
|
||||
* filename - name of the file to write the Wavefront .OBJ format data to
|
||||
* mode - a bitwise or of values describing what is written to the file
|
||||
* GLM_NONE - write only vertices
|
||||
* GLM_FLAT - write facet normals
|
||||
* GLM_SMOOTH - write vertex normals
|
||||
* GLM_TEXTURE - write texture coords
|
||||
* GLM_FLAT and GLM_SMOOTH should not both be specified.
|
||||
*/
|
||||
GLint
|
||||
glmWriteOBJ(const GLMmodel* model, const char* filename, GLuint mode);
|
||||
|
||||
/* glmDraw: Renders the model to the current OpenGL context using the
|
||||
* mode specified.
|
||||
*
|
||||
* model - initialized GLMmodel structure
|
||||
* mode - a bitwise OR of values describing what is to be rendered.
|
||||
* GLM_NONE - render with only vertices
|
||||
* GLM_FLAT - render with facet normals
|
||||
* GLM_SMOOTH - render with vertex normals
|
||||
* GLM_TEXTURE - render with texture coords
|
||||
* GLM_FLAT and GLM_SMOOTH should not both be specified.
|
||||
*/
|
||||
GLvoid
|
||||
glmDraw(const GLMmodel* model, GLuint mode);
|
||||
|
||||
|
||||
/* glmDrawGroup: Renders a single group of model to the current OpenGL context using the
|
||||
* mode specified.
|
||||
*
|
||||
* model - initialized GLMmodel structure
|
||||
* mode - a bitwise OR of values describing what is to be rendered.
|
||||
* GLM_NONE - render with only vertices
|
||||
* GLM_FLAT - render with facet normals
|
||||
* GLM_SMOOTH - render with vertex normals
|
||||
* GLM_TEXTURE - render with texture coords
|
||||
* GLM_FLAT and GLM_SMOOTH should not both be specified.
|
||||
*/
|
||||
GLvoid
|
||||
glmDrawGroup(const GLMmodel* model, GLuint mode,int groupNumber);
|
||||
|
||||
/* glmList: Generates and returns a display list for the model using
|
||||
* the mode specified.
|
||||
*
|
||||
* model - initialized GLMmodel structure
|
||||
* mode - a bitwise OR of values describing what is to be rendered.
|
||||
* GLM_NONE - render with only vertices
|
||||
* GLM_FLAT - render with facet normals
|
||||
* GLM_SMOOTH - render with vertex normals
|
||||
* GLM_TEXTURE - render with texture coords
|
||||
* GLM_FLAT and GLM_SMOOTH should not both be specified.
|
||||
*/
|
||||
GLuint
|
||||
glmList(const GLMmodel* model, GLuint mode);
|
||||
|
||||
/* glmListGroup: Generates and returns a display list for the model group using
|
||||
* the mode specified.
|
||||
*
|
||||
* model - initialized GLMmodel structure
|
||||
* mode - a bitwise OR of values describing what is to be rendered.
|
||||
* GLM_NONE - render with only vertices
|
||||
* GLM_FLAT - render with facet normals
|
||||
* GLM_SMOOTH - render with vertex normals
|
||||
* GLM_TEXTURE - render with texture coords
|
||||
* GLM_FLAT and GLM_SMOOTH should not both be specified.
|
||||
*/
|
||||
GLuint
|
||||
glmListGroup(const GLMmodel* model, GLuint mode, int groupNumber);
|
||||
|
||||
/* glmWeld: eliminate (weld) vectors that are within an epsilon of
|
||||
* each other.
|
||||
*
|
||||
* model - initialized GLMmodel structure
|
||||
* epsilon - maximum difference between vertices
|
||||
* ( 0.00001 is a good start for a unitized model)
|
||||
*
|
||||
*/
|
||||
GLvoid
|
||||
glmWeld(GLMmodel* model, GLfloat epsilon);
|
||||
|
||||
/* glmReadPPM: read a PPM raw (type P6) file. The PPM file has a header
|
||||
* that should look something like:
|
||||
*
|
||||
* P6
|
||||
* # comment
|
||||
* width height max_value
|
||||
* rgbrgbrgb...
|
||||
*
|
||||
* where "P6" is the magic cookie which identifies the file type and
|
||||
* should be the only characters on the first line followed by a
|
||||
* carriage return. Any line starting with a # mark will be treated
|
||||
* as a comment and discarded. After the magic cookie, three integer
|
||||
* values are expected: width, height of the image and the maximum
|
||||
* value for a pixel (max_value must be < 256 for PPM raw files). The
|
||||
* data section consists of width*height rgb triplets (one byte each)
|
||||
* in binary format (i.e., such as that written with fwrite() or
|
||||
* equivalent).
|
||||
*
|
||||
* The rgb data is returned as an array of unsigned chars (packed
|
||||
* rgb). The malloc()'d memory should be free()'d by the caller. If
|
||||
* an error occurs, an error message is sent to stderr and NULL is
|
||||
* returned.
|
||||
*
|
||||
* filename - name of the .ppm file.
|
||||
* width - will contain the width of the image on return.
|
||||
* height - will contain the height of the image on return.
|
||||
*
|
||||
*/
|
||||
GLubyte*
|
||||
glmReadPPM(const char* filename, int* width, int* height);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* TD_H */
|
21
Gem/plugins/modelOBJ/win-vs2003/modelOBJ.sln
Normal file
21
Gem/plugins/modelOBJ/win-vs2003/modelOBJ.sln
Normal file
|
@ -0,0 +1,21 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 8.00
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "modelOBJ", "modelOBJ.vcproj", "{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfiguration) = preSolution
|
||||
Release = Release
|
||||
ReleaseDummy = ReleaseDummy
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfiguration) = postSolution
|
||||
{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}.Release.ActiveCfg = Release|Win32
|
||||
{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}.Release.Build.0 = Release|Win32
|
||||
{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}.ReleaseDummy.ActiveCfg = ReleaseDummy|Win32
|
||||
{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}.ReleaseDummy.Build.0 = ReleaseDummy|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityAddIns) = postSolution
|
||||
EndGlobalSection
|
||||
EndGlobal
|
152
Gem/plugins/modelOBJ/win-vs2003/modelOBJ.vcproj
Normal file
152
Gem/plugins/modelOBJ/win-vs2003/modelOBJ.vcproj
Normal file
|
@ -0,0 +1,152 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="7.10"
|
||||
Name="modelOBJ"
|
||||
ProjectGUID="{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}"
|
||||
RootNamespace="gem"
|
||||
SccProjectName=""
|
||||
SccLocalPath="">
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"/>
|
||||
</Platforms>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="$(SolutionDir)"
|
||||
IntermediateDirectory="$(ProjectDir)/$(ConfigurationName)"
|
||||
ConfigurationType="2"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
GlobalOptimizations="TRUE"
|
||||
InlineFunctionExpansion="2"
|
||||
FavorSizeOrSpeed="1"
|
||||
OptimizeForProcessor="2"
|
||||
AdditionalIncludeDirectories=""$(SolutionDir)\..\..\src";"$(ProjectDir)\..\..\src";"$(ProjectDir)\..\..\..\..\pd\src";"$(ProgramFiles)\pd\src""
|
||||
PreprocessorDefinitions="NT;WIN32;_WINDOWS;__WIN32__;_LANGUAGE_C_PLUS_PLUS;WIN32_LEAN_AND_MEAN"
|
||||
StringPooling="TRUE"
|
||||
RuntimeLibrary="2"
|
||||
EnableFunctionLevelLinking="TRUE"
|
||||
EnableEnhancedInstructionSet="0"
|
||||
DefaultCharIsUnsigned="FALSE"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/MACHINE:I386"
|
||||
AdditionalDependencies="Gem.lib pd.lib opengl32.lib"
|
||||
OutputFile="$(OutDir)/gem_$(ProjectName).dll"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories=""$(SolutionDir)";"$(ProjectDir)\..\..\build\win-vs2003";"$(ProjectDir)\..\..\..\..\pd\bin";"$(ProgramFiles)\pd\bin""
|
||||
ProgramDatabaseFile="$(ProjectDir)/$(ProjectName).pdb"
|
||||
ImportLibrary="$(ProjectDir)/$(TargetName).lib"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
MkTypLibCompatible="TRUE"
|
||||
SuppressStartupBanner="TRUE"
|
||||
TargetEnvironment="1"
|
||||
TypeLibraryName=".\./gem.tlb"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
Culture="1033"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="ReleaseDummy|Win32"
|
||||
OutputDirectory="$(SolutionDir)"
|
||||
IntermediateDirectory="$(ProjectDir)/$(ConfigurationName)"
|
||||
ConfigurationType="2"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
GlobalOptimizations="TRUE"
|
||||
InlineFunctionExpansion="2"
|
||||
FavorSizeOrSpeed="1"
|
||||
OptimizeForProcessor="2"
|
||||
AdditionalIncludeDirectories=""$(SolutionDir)\..\..\src";"$(ProjectDir)\..\..\src";"$(ProjectDir)\..\..\..\..\pd\src";"$(ProgramFiles)\pd\src""
|
||||
PreprocessorDefinitions="NT;WIN32;_WINDOWS;__WIN32__;_LANGUAGE_C_PLUS_PLUS;WIN32_LEAN_AND_MEAN"
|
||||
StringPooling="TRUE"
|
||||
RuntimeLibrary="2"
|
||||
EnableFunctionLevelLinking="TRUE"
|
||||
EnableEnhancedInstructionSet="0"
|
||||
DefaultCharIsUnsigned="FALSE"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/MACHINE:I386"
|
||||
AdditionalDependencies="OLDNAMES.lib Gem.lib pd.lib"
|
||||
OutputFile="$(OutDir)/gem_$(ProjectName).dll"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories=""$(SolutionDir)";"$(ProjectDir)\..\..\build\win-vs2003";"$(ProjectDir)\..\..\..\..\pd\bin";"$(ProgramFiles)\pd\bin""
|
||||
ProgramDatabaseFile="$(ProjectDir)/$(ProjectName).pdb"
|
||||
ImportLibrary="$(ProjectDir)/$(TargetName).lib"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
MkTypLibCompatible="TRUE"
|
||||
SuppressStartupBanner="TRUE"
|
||||
TargetEnvironment="1"
|
||||
TypeLibraryName=".\./gem.tlb"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
Culture="1033"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath="..\model_loader.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\model_loader.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\modelOBJ.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\modelOBJ.h">
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
21
Gem/plugins/modelOBJ/win-vs2008/modelOBJ.sln
Normal file
21
Gem/plugins/modelOBJ/win-vs2008/modelOBJ.sln
Normal file
|
@ -0,0 +1,21 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 8.00
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "modelOBJ", "modelOBJ.vcproj", "{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfiguration) = preSolution
|
||||
Release = Release
|
||||
ReleaseDummy = ReleaseDummy
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfiguration) = postSolution
|
||||
{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}.Release.ActiveCfg = Release|Win32
|
||||
{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}.Release.Build.0 = Release|Win32
|
||||
{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}.ReleaseDummy.ActiveCfg = ReleaseDummy|Win32
|
||||
{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}.ReleaseDummy.Build.0 = ReleaseDummy|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityAddIns) = postSolution
|
||||
EndGlobalSection
|
||||
EndGlobal
|
180
Gem/plugins/modelOBJ/win-vs2008/modelOBJ.vcproj
Normal file
180
Gem/plugins/modelOBJ/win-vs2008/modelOBJ.vcproj
Normal file
|
@ -0,0 +1,180 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9,00"
|
||||
Name="modelOBJ"
|
||||
ProjectGUID="{958A7694-C3A6-4CE8-A4EB-6AD0D55D3511}"
|
||||
RootNamespace="gem"
|
||||
TargetFrameworkVersion="131072"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;..\..\..\build\win-vs2008\plugin.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
MkTypLibCompatible="true"
|
||||
SuppressStartupBanner="true"
|
||||
TargetEnvironment="1"
|
||||
TypeLibraryName=".\./gem.tlb"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories=""
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
Culture="1033"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/MACHINE:I386"
|
||||
AdditionalDependencies="opengl32.lib"
|
||||
AdditionalLibraryDirectories=""
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="ReleaseDummy|Win32"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;..\..\..\build\win-vs2008\plugin.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
MkTypLibCompatible="true"
|
||||
SuppressStartupBanner="true"
|
||||
TargetEnvironment="1"
|
||||
TypeLibraryName=".\./gem.tlb"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories=""
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
Culture="1033"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/MACHINE:I386"
|
||||
AdditionalLibraryDirectories=""
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath="..\model_loader.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\model_loader.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\modelOBJ.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\modelOBJ.h"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
Loading…
Add table
Add a link
Reference in a new issue