first commit
This commit is contained in:
36
include/engine/gpu/gpu_render_list.h
Normal file
36
include/engine/gpu/gpu_render_list.h
Normal file
@ -0,0 +1,36 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
GSFramework
|
||||
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
||||
------------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef __GPU_RENDER_LIST__
|
||||
#define __GPU_RENDER_LIST__
|
||||
|
||||
|
||||
#include "gpu/gpu_display_list.h"
|
||||
#include "core/renderable.h"
|
||||
|
||||
|
||||
namespace GS {
|
||||
namespace GPU {
|
||||
|
||||
struct RenderableList
|
||||
{
|
||||
AutoStack <Render::Primitive *> primitive_list;
|
||||
AutoStack <RenderPrimitive *> display_lists[3];
|
||||
|
||||
// 0 - opaque, 1 - transparent, 2 - framebuffer dependent
|
||||
void Clear(bool free_internals = true)
|
||||
{
|
||||
primitive_list.Clear(free_internals);
|
||||
for (int n = 0; n < 3; ++n)
|
||||
display_lists[n].Clear(free_internals);
|
||||
}
|
||||
};
|
||||
|
||||
} // GPU
|
||||
} // GS
|
||||
|
||||
|
||||
#endif // __GPU_RENDER_LIST__
|
||||
Reference in New Issue
Block a user