Skip to main content
GameDev.net gamedev.net
🔒 Locked

DX9 VertexBuffer Constructor Problems

Started by JustinHust Mar 14, 2003 at 1:32 PM 0 replies 150+ views
Original Post
JustinHust
JustinHust
Hi there, In DirectX9, if I use the VertexBuffer constructor of: m_vbOrigin = New VertexBuffer(m_device, CustomVertex.PositionColored.StrideSize * 6, 0, CustomVertex.PositionColored.Format, Pool.Default) I get NOTHING displayed when I render the vertex buffer. However, using THIS line of code instead, gives me what I want (three lines indicating the axes of the world colored in red, green, and blue centered at the origin) m_vbOrigin = New VertexBuffer(GetType(CustomVertex.PositionColored), 6, m_device, 0, CustomVertex.PositionColored.Format, Pool.Default) Anyone else had similar problems? I can''t figure out why there should be any difference. Thanks, Justin

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.