clean up parameter types
This commit is contained in:
@@ -178,10 +178,10 @@ public:
|
||||
virtual void SetAlphaTest( bool b ) = 0;
|
||||
|
||||
virtual void SetMaterial(
|
||||
float emissive[4],
|
||||
float ambient[4],
|
||||
float diffuse[4],
|
||||
float specular[4],
|
||||
const RageColor &emissive,
|
||||
const RageColor &ambient,
|
||||
const RageColor &diffuse,
|
||||
const RageColor &specular,
|
||||
float shininess
|
||||
) = 0;
|
||||
|
||||
@@ -189,10 +189,10 @@ public:
|
||||
virtual void SetLightOff( int index ) = 0;
|
||||
virtual void SetLightDirectional(
|
||||
int index,
|
||||
RageColor ambient,
|
||||
RageColor diffuse,
|
||||
RageColor specular,
|
||||
RageVector3 dir ) = 0;
|
||||
const RageColor &ambient,
|
||||
const RageColor &diffuse,
|
||||
const RageColor &specular,
|
||||
const RageVector3 &dir ) = 0;
|
||||
|
||||
virtual void SetSphereEnironmentMapping( bool b ) = 0;
|
||||
|
||||
|
||||
@@ -972,10 +972,10 @@ void RageDisplay_D3D::SetTextureWrapping( bool b )
|
||||
}
|
||||
|
||||
void RageDisplay_D3D::SetMaterial(
|
||||
float emissive[4],
|
||||
float ambient[4],
|
||||
float diffuse[4],
|
||||
float specular[4],
|
||||
const RageColor &emissive,
|
||||
const RageColor &ambient,
|
||||
const RageColor &diffuse,
|
||||
const RageColor &specular,
|
||||
float shininess
|
||||
)
|
||||
{
|
||||
@@ -1004,10 +1004,10 @@ void RageDisplay_D3D::SetLightOff( int index )
|
||||
}
|
||||
void RageDisplay_D3D::SetLightDirectional(
|
||||
int index,
|
||||
RageColor ambient,
|
||||
RageColor diffuse,
|
||||
RageColor specular,
|
||||
RageVector3 dir )
|
||||
const RageColor &ambient,
|
||||
const RageColor &diffuse,
|
||||
const RageColor &specular,
|
||||
const RageVector3 &dir )
|
||||
{
|
||||
g_pd3dDevice->LightEnable( index, true );
|
||||
|
||||
|
||||
@@ -53,20 +53,20 @@ public:
|
||||
void SetBackfaceCull( bool b );
|
||||
void SetAlphaTest( bool b );
|
||||
void SetMaterial(
|
||||
float emissive[4],
|
||||
float ambient[4],
|
||||
float diffuse[4],
|
||||
float specular[4],
|
||||
const RageColor &emissive,
|
||||
const RageColor &ambient,
|
||||
const RageColor &diffuse,
|
||||
const RageColor &specular,
|
||||
float shininess
|
||||
);
|
||||
void SetLighting( bool b );
|
||||
void SetLightOff( int index );
|
||||
void SetLightDirectional(
|
||||
int index,
|
||||
RageColor ambient,
|
||||
RageColor diffuse,
|
||||
RageColor specular,
|
||||
RageVector3 dir );
|
||||
const RageColor &ambient,
|
||||
const RageColor &diffuse,
|
||||
const RageColor &specular,
|
||||
const RageVector3 &dir );
|
||||
|
||||
void SetSphereEnironmentMapping( bool b );
|
||||
|
||||
|
||||
@@ -1124,10 +1124,10 @@ void RageDisplay_OGL::SetTextureWrapping( bool b )
|
||||
}
|
||||
|
||||
void RageDisplay_OGL::SetMaterial(
|
||||
float emissive[4],
|
||||
float ambient[4],
|
||||
float diffuse[4],
|
||||
float specular[4],
|
||||
const RageColor &emissive,
|
||||
const RageColor &ambient,
|
||||
const RageColor &diffuse,
|
||||
const RageColor &specular,
|
||||
float shininess
|
||||
)
|
||||
{
|
||||
@@ -1150,10 +1150,10 @@ void RageDisplay_OGL::SetLightOff( int index )
|
||||
}
|
||||
void RageDisplay_OGL::SetLightDirectional(
|
||||
int index,
|
||||
RageColor ambient,
|
||||
RageColor diffuse,
|
||||
RageColor specular,
|
||||
RageVector3 dir )
|
||||
const RageColor &ambient,
|
||||
const RageColor &diffuse,
|
||||
const RageColor &specular,
|
||||
const RageVector3 &dir )
|
||||
{
|
||||
// Light coordinates are transformed by the modelview matrix, but
|
||||
// we are being passed in world-space coords.
|
||||
|
||||
@@ -39,20 +39,20 @@ public:
|
||||
void SetBackfaceCull( bool b );
|
||||
void SetAlphaTest( bool b );
|
||||
void SetMaterial(
|
||||
float emissive[4],
|
||||
float ambient[4],
|
||||
float diffuse[4],
|
||||
float specular[4],
|
||||
const RageColor &emissive,
|
||||
const RageColor &ambient,
|
||||
const RageColor &diffuse,
|
||||
const RageColor &specular,
|
||||
float shininess
|
||||
);
|
||||
void SetLighting( bool b );
|
||||
void SetLightOff( int index );
|
||||
void SetLightDirectional(
|
||||
int index,
|
||||
RageColor ambient,
|
||||
RageColor diffuse,
|
||||
RageColor specular,
|
||||
RageVector3 dir );
|
||||
const RageColor &ambient,
|
||||
const RageColor &diffuse,
|
||||
const RageColor &specular,
|
||||
const RageVector3 &dir );
|
||||
|
||||
void SetSphereEnironmentMapping( bool b );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user