Files
android_development/tools/a3dconvert/ColladaConditioner.h
Alex Sakhartchouk 17bd28b0ce renderscript geometry converter.
Initial implementation of the converted from .obj and .dae file to the renderscript file format.

Change-Id: I47f4ecf0fb68515914b660dd3d548afa1920d79c
2011-02-11 17:51:44 -08:00

29 lines
744 B
C++

/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the MIT Open Source License, for details please see license.txt or the website
* http://www.opensource.org/licenses/mit-license.php
*
*/
#ifndef COLLADA_CONDITIONER
#define COLLADA_CONDITIONER
#include <dae.h>
#include <dom/domConstants.h>
#include <dom/domCOLLADA.h>
class ColladaConditioner {
private:
unsigned int getMaxOffset( domInputLocalOffset_Array &input_array );
void createTrianglesFromPolylist( domMesh *thisMesh, domPolylist *thisPolylist );
void createTrianglesFromPolygons( domMesh *thisMesh, domPolygons *thisPolygons );
public:
bool triangulate(DAE *dae);
bool triangulate(const char *inputFile);
};
#endif //COLLADA_CONDITIONER