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