view Renderer/DataPack/Test/SpanPack/main.cpp @ 503:516d5c91d5b4 draft double-linked-task-list

comment
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 11 Oct 2009 19:35:33 +0900
parents 587baff06cbc
children
line wrap: on
line source

#include <iostream>
#include "polygonpack.h"

int main(int argc, char *argv[]) {
	Polygon_Pack *akira = new Polygon_Pack();
	 PolygonPack *hoge;
	 SPANPACK *hoge2;
	hoge->info.size =0;
	hoge->tri[0].ver1.x = 34.345901;
	hoge->tri[0].ver1.y = -26.347542;
	hoge->tri[0].ver1.z = -1.079739;
	hoge->tri[0].ver1.tex_x = 0.000000;
	hoge->tri[0].ver1.tex_y = 1.000000;

	hoge->tri[0].ver2.x = -9.054828;
	hoge->tri[0].ver2.y = -36.410835;
	hoge->tri[0].ver2.z = 21.616213;
	hoge->tri[0].ver2.tex_x = 0.000000;
	hoge->tri[0].ver2.tex_y = 0.000000;
	
	hoge->tri[0].ver3.x = -33.877331;
	hoge->tri[0].ver3.y = -19.684675;
	hoge->tri[0].ver3.z = -18.434740;
	hoge->tri[0].ver3.tex_x = 1.000000;
	hoge->tri[0].ver3.tex_y = 0.000000;
	akira->create_span((void*)hoge,(void*)hoge2);
	return 0;
}