mirror of
https://github.com/thug1src/thug.git
synced 2025-01-22 05:43:47 +00:00
34 lines
869 B
C++
34 lines
869 B
C++
///////////////////////////////////////////////////////////////////////////////
|
|
// p_NxViewport.h
|
|
|
|
#ifndef __GFX_P_NX_VIEWPORT_H__
|
|
#define __GFX_P_NX_VIEWPORT_H__
|
|
|
|
#include "Gfx/NxViewport.h"
|
|
|
|
namespace Nx
|
|
{
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////////
|
|
// Private classes
|
|
//
|
|
// Machine specific implementation of the CViewport
|
|
class CPs2Viewport : public CViewport
|
|
{
|
|
public:
|
|
CPs2Viewport();
|
|
CPs2Viewport(const Mth::Rect* rect, Gfx::Camera* cam = NULL);
|
|
virtual ~CPs2Viewport();
|
|
|
|
protected:
|
|
void update_render_vars();
|
|
|
|
private: // It's all private, as it is machine specific
|
|
virtual float plat_transform_to_screen_coord(const Mth::Vector & world_pos, float & screen_pos_x, float & screen_pos_y, ZBufferValue & screen_pos_z);
|
|
|
|
};
|
|
|
|
} // Namespace Nx
|
|
|
|
#endif
|