mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
moar cleanup
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1694 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -97,6 +97,7 @@ public:
|
||||
|
||||
virtual void Initialize(const PortableVertexDeclaration &vtx_decl) = 0;
|
||||
virtual void SetupVertexPointers() const = 0;
|
||||
virtual void EnableComponents(u32 components) {}
|
||||
|
||||
static NativeVertexFormat *Create();
|
||||
|
||||
|
@ -25,9 +25,8 @@ namespace VertexManager
|
||||
void AddVertices(int primitive, int numvertices);
|
||||
void Flush(); // flushes the current buffer
|
||||
|
||||
// These two don't really belong here and are not relevant for D3D - TODO, find better place to put them.
|
||||
// This doesn't really belong here and are not relevant for D3D - TODO, find better place to put them.
|
||||
int GetRemainingSize(); // remaining space in the current buffer.
|
||||
void EnableComponents(u32 components); // very implementation specific - D3D9 won't need this one.
|
||||
|
||||
// TODO: move, rename.
|
||||
extern u8* s_pCurBufferPointer;
|
||||
|
@ -507,7 +507,7 @@ void VertexLoader::RunVertices(int vtx_attr_group, int primitive, int count)
|
||||
return;
|
||||
}
|
||||
|
||||
VertexManager::EnableComponents(m_NativeFmt->m_components);
|
||||
m_NativeFmt->EnableComponents(m_NativeFmt->m_components);
|
||||
|
||||
// Load position and texcoord scale factors.
|
||||
m_VtxAttr.PosFrac = g_VtxAttr[vtx_attr_group].g0.PosFrac;
|
||||
|
Reference in New Issue
Block a user