view old/simple_render/SpanPackList.h @ 998:ad5232ad4952

add fb_test, minor fix
author yutaka@localhost.localdomain
date Fri, 15 Oct 2010 02:13:55 +0900
parents 735f76483bb2
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