annotate old/simple_render/SpanPack.h @ 542:109a33b72b10 draft

continue...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 12 Oct 2009 15:48:40 +0900
parents 3bc98f6d31ff
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 #ifndef INCLUDED_SPAN_PACK
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2 #define INCLUDED_SPAN_PACK
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4 #ifndef INCLUDED_SPAN
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
5 # include "Span.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6 #endif
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
7
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
8 #define MAX_SIZE_SPAN 70
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
9
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
10 class SpanPack {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
11 public: /* fields */
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
12 struct SpanInfo {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
13 int size;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
14 int light_pos[3];
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
15 int light_rgb[3];
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
16 } info;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
17
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
18 Span span[MAX_SIZE_SPAN];
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
19 SpanPack *next;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
20
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
21 public: /* methods */
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
22 void init(void);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
23 };
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
24
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
25 #endif