Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Keegames

layers

This topic is 5757 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Lets explane: I''ve got 2 men on the screen. Now I want that one man pull his gun, without clearing the whole form. So I want one man in one layer and the other man in a other layer. I don''t now wich kin of layer I should use...
Ps: I''m working with VB

Share this post


Link to post
Share on other sites
Your post is unclear, 2d or 3d? What do you mean by layers?
If you mean 2d and layers then layers are a result of your render order, in your graphics pipeline you are going to sort your DDS''s by whatever "layer" they are meant to be in and draw the "ground" layer first, "blending" layer second, "object" layer third, and if you are really special then your "gf effects" layer last. Just chunk them at your display stack in that order.

Dreddnafious Maelstrom

"If i saw farther, it was because I stood on the shoulders of giants."

Sir Isaac Newton

Share this post


Link to post
Share on other sites
You seem to be thinking in graphics software terms. In game programming what usually happens is that your ''layers'' are implicit in the order of drawing. In a 2D game you usually just draw things from back to front, which gives you the appearance of depth.

[ MSVC Fixes | STL | SDL | Game AI | Sockets | C++ Faq Lite | Boost | Asking Questions | Organising code files | My stuff ]

Share this post


Link to post
Share on other sites
Yes, and you''ll have to sort them if they can move toward/away from the screen. Otherwise I don''t see why you would be concerned with layers.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!