xres/yres is now g_xres/g_yres and in Prometheus.h
This was SVN commit r72.
This commit is contained in:
parent
b095ca8176
commit
79055b7d88
@ -11,8 +11,7 @@
|
||||
//***********************************************************
|
||||
|
||||
#include "Camera.H"
|
||||
|
||||
extern int xres, yres;
|
||||
#include "../ps/Prometheus.h"
|
||||
|
||||
CCamera::CCamera ()
|
||||
{
|
||||
|
@ -128,7 +128,7 @@ void CRenderer::RenderTerrain (CTerrain *terrain, CCamera *camera)
|
||||
glLoadMatrixf (gl_proj);
|
||||
|
||||
SViewPort vp = camera->GetViewPort();
|
||||
glViewport (vp.m_X, vp.m_Y, vp.m_Width, vp.m_Height);
|
||||
//glViewport (vp.m_X, vp.m_Y, vp.m_Width, vp.m_Height);
|
||||
|
||||
if (g_WireFrame)
|
||||
glPolygonMode (GL_FRONT_AND_BACK, GL_LINE);
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include "Matrix3D.H"
|
||||
#include "Renderer.H"
|
||||
#include "Terrain.H"
|
||||
#include "../ps/Prometheus.h"
|
||||
|
||||
#include "time.h"
|
||||
#include "wsdl.h"
|
||||
@ -40,8 +41,6 @@ Handle AlphaMaps[NUM_ALPHA_MAPS];
|
||||
|
||||
int mouse_x=50, mouse_y=50;
|
||||
|
||||
extern int xres, yres;
|
||||
|
||||
|
||||
void terr_init()
|
||||
{
|
||||
@ -68,12 +67,12 @@ g_FrameCounter++;
|
||||
right.Normalize ();
|
||||
up.Normalize ();
|
||||
|
||||
if (mouse_x >= xres-2)
|
||||
if (mouse_x >= g_xres-2)
|
||||
g_Camera.m_Orientation.Translate (right);
|
||||
if (mouse_x <= 3)
|
||||
g_Camera.m_Orientation.Translate (right*-1);
|
||||
|
||||
if (mouse_y >= yres-2)
|
||||
if (mouse_y >= g_yres-2)
|
||||
g_Camera.m_Orientation.Translate (up);
|
||||
if (mouse_y <= 3)
|
||||
g_Camera.m_Orientation.Translate (up*-1);
|
||||
|
Loading…
Reference in New Issue
Block a user