2003-02-16 04:01:45 +00:00
|
|
|
#include "global.h"
|
2002-05-20 08:59:37 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
File: ScreenSandbox.h
|
|
|
|
|
|
2003-01-09 04:45:49 +00:00
|
|
|
Desc: Area for testing. Throw whatever you're working on in here. If you
|
|
|
|
|
don't want stuff in here to be wiped out by the next guy who works on something,
|
|
|
|
|
make a separate screen and add a hook into ScreenTest; this one's just a
|
|
|
|
|
scratchpad.
|
2002-05-20 08:59:37 +00:00
|
|
|
|
|
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
2002-11-19 22:55:51 +00:00
|
|
|
Chris Danford
|
|
|
|
|
Glenn Maynard (OpenGL Code)
|
|
|
|
|
Lance Gilbert (OpenGL/Usability Modifications)
|
2002-05-20 08:59:37 +00:00
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "ScreenSandbox.h"
|
2003-02-26 00:20:00 +00:00
|
|
|
#include "GameConstantsAndTypes.h"
|
2003-04-13 06:29:02 +00:00
|
|
|
#include "ThemeManager.h"
|
2003-05-11 07:23:47 +00:00
|
|
|
#include "RageDisplay.h"
|
|
|
|
|
#include "RageTimer.h"
|
2002-05-20 08:59:37 +00:00
|
|
|
|
|
|
|
|
|
2003-04-12 06:16:12 +00:00
|
|
|
ScreenSandbox::ScreenSandbox() : Screen("ScreenSandbox")
|
2003-01-09 04:45:49 +00:00
|
|
|
{
|
2003-05-25 00:43:44 +00:00
|
|
|
m_quad1.StretchTo( RectI(SCREEN_LEFT, SCREEN_TOP, SCREEN_RIGHT, SCREEN_BOTTOM) );
|
|
|
|
|
m_quad1.SetDiffuse( RageColor(0,0,1,1) );
|
|
|
|
|
m_quad1.SetZ( 0 );
|
|
|
|
|
m_quad1.SetUseZBuffer( true );
|
2003-06-05 19:29:27 +00:00
|
|
|
// this->AddChild( &m_quad1 );
|
2003-05-25 00:43:44 +00:00
|
|
|
|
|
|
|
|
m_quad2.StretchTo( RectI(SCREEN_LEFT, SCREEN_TOP, SCREEN_RIGHT, SCREEN_BOTTOM) );
|
|
|
|
|
m_quad2.SetDiffuse( RageColor(0,1,0,1) );
|
|
|
|
|
m_quad2.SetZ( 1 );
|
|
|
|
|
m_quad2.SetUseZBuffer( true );
|
|
|
|
|
this->AddChild( &m_quad2 );
|
2002-11-26 01:17:43 +00:00
|
|
|
|
2002-12-18 06:54:28 +00:00
|
|
|
// m_sprite.Load( "C:\\stepmania\\stepmania\\RandomMovies\\cm301[1].avi" );
|
|
|
|
|
// m_sprite.SetXY( CENTER_X, CENTER_Y );
|
|
|
|
|
// this->AddChild( &m_sprite );
|
2002-11-26 01:17:43 +00:00
|
|
|
|
2003-05-25 00:43:44 +00:00
|
|
|
// m_model.SetXY(CENTER_X, CENTER_Y);
|
|
|
|
|
// m_model.SetZoom(3);
|
|
|
|
|
// //m_model.SetZoomY(-1);
|
|
|
|
|
// m_model.LoadMilkshapeAscii( "Down Tap Note 4th.txt" );
|
2003-05-09 04:42:04 +00:00
|
|
|
// m_model.LoadMilkshapeAsciiBones( "D:\\Dev\\ddrpc char hacking\\DDRPCRip\\models\\howtoplay.bones.txt" );
|
2003-05-25 00:43:44 +00:00
|
|
|
// this->AddChild(&m_model);
|
|
|
|
|
// m_model.SetEffectSpin( RageVector3(0,90,90) );
|
2003-04-13 06:29:02 +00:00
|
|
|
|
|
|
|
|
this->AddChild( &m_In );
|
|
|
|
|
|
|
|
|
|
this->AddChild( &m_Out );
|
2002-12-18 06:54:28 +00:00
|
|
|
}
|
|
|
|
|
|
2003-01-09 04:45:49 +00:00
|
|
|
void ScreenSandbox::HandleScreenMessage( const ScreenMessage SM )
|
2002-12-18 06:54:28 +00:00
|
|
|
{
|
2002-05-20 08:59:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ScreenSandbox::Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI )
|
|
|
|
|
{
|
2003-04-13 06:29:02 +00:00
|
|
|
Screen::Input( DeviceI, type, GameI, MenuI, StyleI );
|
2002-05-20 08:59:37 +00:00
|
|
|
}
|
2003-01-09 04:45:49 +00:00
|
|
|
|
|
|
|
|
void ScreenSandbox::Update( float fDeltaTime )
|
2002-05-20 08:59:37 +00:00
|
|
|
{
|
2003-01-09 04:45:49 +00:00
|
|
|
Screen::Update(fDeltaTime);
|
2002-11-16 20:21:00 +00:00
|
|
|
}
|
2003-04-13 06:29:02 +00:00
|
|
|
|
2003-05-11 07:23:47 +00:00
|
|
|
void ScreenSandbox::DrawPrimitives()
|
|
|
|
|
{
|
2003-05-25 00:43:44 +00:00
|
|
|
// DISPLAY->SetLighting( true );
|
|
|
|
|
// DISPLAY->SetLightDirectional(
|
|
|
|
|
// 0,
|
|
|
|
|
// RageColor(0,0,0,0),
|
|
|
|
|
// RageColor(1,1,1,1),
|
|
|
|
|
// RageColor(0,0,0,1),
|
|
|
|
|
// RageVector3(0, -1, 0) );
|
2003-05-11 07:23:47 +00:00
|
|
|
|
|
|
|
|
Screen::DrawPrimitives();
|
|
|
|
|
|
2003-05-25 00:43:44 +00:00
|
|
|
// DISPLAY->SetLightOff( 0 );
|
|
|
|
|
// DISPLAY->SetLighting( false );
|
2003-05-11 07:23:47 +00:00
|
|
|
}
|
|
|
|
|
|
2003-04-13 06:29:02 +00:00
|
|
|
void ScreenSandbox::MenuLeft( PlayerNumber pn )
|
|
|
|
|
{
|
|
|
|
|
m_In.Load( THEME->GetPathToB("_menu in") );
|
|
|
|
|
m_In.StartTransitioning();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ScreenSandbox::MenuRight( PlayerNumber pn )
|
|
|
|
|
{
|
|
|
|
|
m_Out.Load( THEME->GetPathToB("_menu out") );
|
|
|
|
|
m_Out.StartTransitioning();
|
|
|
|
|
}
|