Initial
This commit is contained in:
23
engine/VIEWSYS.CPP
Normal file
23
engine/VIEWSYS.CPP
Normal file
@@ -0,0 +1,23 @@
|
||||
#include <engine/viewsys.hpp>
|
||||
#include <common/vector2d.hpp>
|
||||
|
||||
WORD ViewSystem::viewPortWidth(void)const
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
WORD ViewSystem::viewPortHeight(void)const
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
WORD ViewSystem::isInView(const Vector3D &vector3D)
|
||||
{
|
||||
Vector2D vector2D;
|
||||
PureViewSystem::viewPortWidth(viewPortWidth());
|
||||
PureViewSystem::viewPortHeight(viewPortHeight());
|
||||
PureViewSystem::translatePoint(vector3D,vector2D);
|
||||
if(!isInView(vector2D[0])&&!isInView(vector2D[1])&&!isInView(vector2D[2])&&!isInView(vector2D[3]))return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user