Changeset 1788
- Timestamp:
- Aug 22, 2012, 7:14:02 PM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gpu/vertexbuffer.h
r1688 r1788 37 37 }; 38 38 39 /* A safe enum to indicate how a vertex stream is going to be used. For 40 * now there is only TexCoord and not TexCoord0 TexCoord1 etc. because 41 * we can always reorganise the vertex declaration for the indices to 42 * match. If the need arises these enums will be added. */ 39 43 struct VertexUsage 40 44 { … … 58 62 m_value; 59 63 60 inline VertexUsage(Value v) { m_value = v;}64 inline VertexUsage(Value v) : m_value(v) {} 61 65 inline operator Value() { return m_value; } 62 66 }; 63 67 68 /* A safe enum to indicate what kind of primitive to draw. Used in 69 * VertexDeclaration::DrawElements() for instance. */ 64 70 struct MeshPrimitive 65 71 { … … 71 77 m_value; 72 78 73 inline MeshPrimitive(Value v) { m_value = v;}79 inline MeshPrimitive(Value v) : m_value(v) {} 74 80 inline operator Value() { return m_value; } 75 81 }; -
trunk/src/video.h
r1772 r1788 28 28 { 29 29 /* Note: D3D9 doesn't appear to support the accumulation buffer, 30 * and it is a deprecated OpenGL feature. No reason eto support it. */30 * and it is a deprecated OpenGL feature. No reason to support it. */ 31 31 Color = 1 << 0, 32 32 Depth = 1 << 1, … … 37 37 m_value; 38 38 39 inline ClearMask(Value v) { m_value = v;}40 inline ClearMask(uint64_t i) { m_value = (Value)i;}39 inline ClearMask(Value v) : m_value(v) {} 40 inline ClearMask(uint64_t i) : m_value((Value)i) {} 41 41 inline operator Value() { return m_value; } 42 42 };
Note: See TracChangeset
for help on using the changeset viewer.