annotate old/simple_render/SpanPackList.h @ 1740:5a294d8e5643 draft

fix
author Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
date Tue, 12 Nov 2013 16:56:43 +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_LIST
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2 #define INCLUDED_SPAN_PACK_LIST
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4 #ifndef INCLUDED_VIEWER_TYPES
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
5 # include "viewer_types.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 #ifndef INCLUDED_SPAN_PACK
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
9 #include "SpanPack.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
10 #endif
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
11
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
12 // if window_height = 480 (480/8/6 = 10)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
13 // if window_height = 1080 (1080/8/6 = 22.5 => 23)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
14 #define MAX_SIZE_SPAN_PACK \
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
15 ((MAX_HEIGHT / TEXTURE_SPLIT_PIXEL / SPE_NUM_MAX) + 1)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
16
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
17 class SpanPackList {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
18 public:
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
19 SpanPack packs[MAX_SIZE_SPAN_PACK];
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
20 int length;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
21 SpanPackList *next;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
22 };
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