Mercurial > hg > Members > kono > Cerium
diff TaskManager/Test/test_render/polygon.cpp @ 138:3fd24be89d02
オブジェクトを増やして複数の表示に成功。
TODO:オブジェクトの削除
author | gongo@charles.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 28 Nov 2008 12:16:24 +0900 |
parents | 6cf991f28c6c |
children | fc314f28b66e |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/polygon.cpp Fri Nov 28 10:07:48 2008 +0900 +++ b/TaskManager/Test/test_render/polygon.cpp Fri Nov 28 12:16:24 2008 +0900 @@ -2,7 +2,6 @@ #include <SDL.h> #include <SDL_opengl.h> #include <SDL_image.h> -#include <libxml/parser.h> #include "polygon.h" #include "xml.h" #include "texture.h" @@ -42,6 +41,27 @@ } } +void +Polygon::position_init(void) +{ + xyz[0] = 0; + xyz[1] = 0; + xyz[2] = 0; + xyz[3] = 1; + c_xyz[0] = 0; + c_xyz[1] = 0; + c_xyz[2] = 0; + c_xyz[3] = 1; + angle[0] = 0; + angle[1] = 0; + angle[2] = 0; + angle[3] = 1; + + for (int i = 0; i < 16; i++) { + matrix[i] = 0; + } +} + #if 0 void Polygon::draw(SceneGraphPack *sgp) {