sm-ssc v1.0 Public Beta 1 code changes
This commit is contained in:
+8
-4
@@ -15,7 +15,9 @@
|
||||
#include "DisplayResolutions.h"
|
||||
#include "arch/ArchHooks/ArchHooks.h"
|
||||
|
||||
//
|
||||
// Statistics stuff
|
||||
//
|
||||
RageTimer g_LastCheckTimer;
|
||||
int g_iNumVerts;
|
||||
int g_iFPS, g_iVPF, g_iCFPS;
|
||||
@@ -143,7 +145,7 @@ void RageDisplay::ResetStats()
|
||||
RString RageDisplay::GetStats() const
|
||||
{
|
||||
RString s;
|
||||
// If FPS == 0, we don't have stats yet.
|
||||
/* If FPS == 0, we don't have stats yet. */
|
||||
if( !GetFPS() )
|
||||
s = "-- FPS\n-- av FPS\n-- VPF";
|
||||
|
||||
@@ -180,7 +182,7 @@ void RageDisplay::StatsAddVerts( int iNumVertsRendered ) { g_iVertsRenderedSince
|
||||
* angle of the line. */
|
||||
void RageDisplay::DrawPolyLine(const RageSpriteVertex &p1, const RageSpriteVertex &p2, float LineWidth )
|
||||
{
|
||||
// soh cah toa strikes strikes again!
|
||||
/* soh cah toa strikes strikes again! */
|
||||
float opp = p2.p.x - p1.p.x;
|
||||
float adj = p2.p.y - p1.p.y;
|
||||
float hyp = powf(opp*opp + adj*adj, 0.5f);
|
||||
@@ -195,7 +197,7 @@ void RageDisplay::DrawPolyLine(const RageSpriteVertex &p1, const RageSpriteVerte
|
||||
|
||||
float ydist = lsin * LineWidth/2;
|
||||
float xdist = lcos * LineWidth/2;
|
||||
|
||||
|
||||
v[0].p.x += xdist;
|
||||
v[0].p.y -= ydist;
|
||||
v[1].p.x -= xdist;
|
||||
@@ -219,7 +221,7 @@ void RageDisplay::DrawLineStripInternal( const RageSpriteVertex v[], int iNumVer
|
||||
for( int i = 0; i < iNumVerts-1; ++i )
|
||||
DrawPolyLine(v[i], v[i+1], LineWidth);
|
||||
|
||||
// Join the lines with circles so we get rounded corners.
|
||||
/* Join the lines with circles so we get rounded corners. */
|
||||
for( int i = 0; i < iNumVerts; ++i )
|
||||
DrawCircle( v[i], LineWidth/2 );
|
||||
}
|
||||
@@ -259,7 +261,9 @@ void RageDisplay::SetDefaultRenderStates()
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Matrix stuff
|
||||
//
|
||||
class MatrixStack
|
||||
{
|
||||
vector<RageMatrix> stack;
|
||||
|
||||
Reference in New Issue
Block a user