view old/simple_render/SpanPackList.h @ 1500:60f8ba22a200 draft

comment
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 22 Aug 2012 17:44:42 +0900
parents 3bc98f6d31ff
children
line wrap: on
line source

#ifndef INCLUDED_SPAN_PACK_LIST
#define INCLUDED_SPAN_PACK_LIST

#ifndef INCLUDED_VIEWER_TYPES
#  include "viewer_types.h"
#endif

#ifndef INCLUDED_SPAN_PACK
#include "SpanPack.h"
#endif

// if window_height = 480  (480/8/6 = 10)
// if window_height = 1080 (1080/8/6 = 22.5 => 23)
#define MAX_SIZE_SPAN_PACK \
    ((MAX_HEIGHT / TEXTURE_SPLIT_PIXEL / SPE_NUM_MAX) + 1)

class SpanPackList {
public:
    SpanPack packs[MAX_SIZE_SPAN_PACK];
    int length;
    SpanPackList *next;
};


#endif