Skip to content

Commit

Permalink
UPBGE: Remove unused RAS_MeshObject::SetVertexColor.
Browse files Browse the repository at this point in the history
  • Loading branch information
panzergame committed Jun 28, 2016
1 parent 52815f4 commit 6ee296f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
11 changes: 0 additions & 11 deletions source/gameengine/Rasterizer/RAS_MeshObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,17 +350,6 @@ RAS_Polygon *RAS_MeshObject::AddPolygon(RAS_MaterialBucket *bucket, int numverts
return poly;
}

void RAS_MeshObject::SetVertexColor(RAS_IPolyMaterial *mat, MT_Vector4 rgba)
{
RAS_MeshMaterial *mmat = GetMeshMaterial(mat);
RAS_MeshSlot *slot = mmat->m_baseslot;
RAS_DisplayArray *array = slot->GetDisplayArray();

for (unsigned int i = 0; i < array->m_vertex.size(); i++) {
array->m_vertex[i].SetRGBA(rgba);
}
}

unsigned int RAS_MeshObject::AddVertex(RAS_MaterialBucket *bucket, int i,
const MT_Vector3& xyz,
const MT_Vector2 uvs[RAS_TexVert::MAX_UNIT],
Expand Down
3 changes: 0 additions & 3 deletions source/gameengine/Rasterizer/RAS_MeshObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,6 @@ class RAS_MeshObject
void RemoveFromBuckets(void *clientobj);
void EndConversion();

// colors
void SetVertexColor(RAS_IPolyMaterial *mat, MT_Vector4 rgba);

// polygon sorting by Z for alpha
void SortPolygons(RAS_MeshSlot *ms, const MT_Transform &transform);

Expand Down

0 comments on commit 6ee296f

Please sign in to comment.