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

DrawPrimitive, reducing calls

Started by StormArmageddon Jul 16, 2003 at 9:58 AM 0 replies 300+ views
Original Post
StormArmageddon
StormArmageddon
Say you have two objects, one is a character model and another is a weapon with the correct poition in model space to fit in the character''s hand. Could you use one DrawPrimitve call to draw both models without DirectX trying to draw them as one? Basically can you use DrawPrimitive, or any of the draws for that matter, to draw multiple objects?
JuNC
JuNC
As long as:

1) the vertices & indices for both models are present in the same buffers (and the indices follow on)

2) they both share the same material (texture, texture states, lights etc)

then yes, no problem.

Topic Locked

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

Sign in to reply to this topic.