Skip to content

Commit

Permalink
__inline and const
Browse files Browse the repository at this point in the history
  • Loading branch information
fluffyfreak committed Feb 21, 2016
1 parent 6b8aab3 commit b4cff2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/graphics/VertexArray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ VertexArray::~VertexArray()

}

bool VertexArray::HasAttrib(VertexAttrib v) const
bool VertexArray::HasAttrib(const VertexAttrib v) const
{
return (m_attribs & v) != 0;
}
Expand Down
8 changes: 4 additions & 4 deletions src/graphics/VertexArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ class VertexArray {
~VertexArray();

//check presence of an attribute
bool HasAttrib(VertexAttrib v) const;
unsigned int GetNumVerts() const;
AttributeSet GetAttributeSet() const { return m_attribs; }
__inline bool HasAttrib(const VertexAttrib v) const;
__inline unsigned int GetNumVerts() const;
__inline AttributeSet GetAttributeSet() const { return m_attribs; }

bool IsEmpty() const { return position.empty(); }
__inline bool IsEmpty() const { return position.empty(); }

//removes vertices, does not deallocate space
void Clear();
Expand Down

0 comments on commit b4cff2e

Please sign in to comment.