Mercurial > hg > Game > Cerium
view TaskManager/Test/test_render/polygon.h @ 137:91c74dbc32e4 draft
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
author | gongo@gendarme.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 28 Nov 2008 10:07:48 +0900 |
parents | e9e12e2088bd |
children | f35504025f73 |
line wrap: on
line source
#include <libxml/parser.h> #ifndef INCLUDED_POLYGON #define INCLUDED_POLYGON #ifndef INCLUDED_VIEWER # include "viewer.h" #endif #ifndef INCLUDED_POLYGON_PACK # include "polygon_pack.h" #endif #ifndef INCLUDED_SPAN_PACK # include "SpanPack.h" #endif class Polygon { public: long long size; char *name; char *parent_name; float *data; //"vertex" and "normal" and "texture" float xyz[4]; // position float angle[4]; // angle float c_xyz[4]; // center of rotation float matrix[16]; float *anim; int frame; // anime frame num //int *texture; // pointer of this surface's texture static SDL_Surface* texture_image; // pointer of this surface's texture Polygon(void); Polygon(xmlNodePtr); void parameter_change(char *name, float x, float y, float z, float ax, float ay, float az); //void load_texture(char *image_name); //void draw(float *stack); //void draw(SceneGraphPack *sgp); //void draw(PolygonPack *pp); //void draw(SpanPack *sp); Uint32 get_rgb(int tx, int ty); void tree_draw(); void pickup_coordinate(char *cont); void pickup_normal(char *cont); void pickup_model(char *cont); void pickup_texture(char *cont); }; #endif