added RenderNode class.

This commit is contained in:
2021-06-10 18:56:23 +08:00
parent 2180dff6f8
commit ce420d23a7
7 changed files with 122 additions and 86 deletions

View File

@@ -0,0 +1,25 @@
#ifndef HGL_GRAPH_RENDER_NODE_INCLUDE
#define HGL_GRAPH_RENDER_NODE_INCLUDE
#include<hgl/math/Vector.h>
#include<hgl/type/List.h>
namespace hgl
{
namespace graph
{
class RenderableInstance;
struct RenderNode
{
Vector4f WorldCenter;
float distance_to_camera_square;
// float distance_to_camera;
RenderableInstance *ri;
};//struct RenderNode
using RenderNodeList=List<RenderNode *>;
}//namespace graph
}//namespace hgl
#endif//HGL_GRAPH_RENDER_NODE_INCLUDE