Jump to content
  • Advertisement

Archived

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

Lash

Pasting Together A Function

This topic is 5812 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

I''m writing a software 3d engine and I thought maybe instead of having a bunch of if statements to check if the polys should be shaded, textured, blended, etc each time I call my DrawScanline function, I could somehow use a bunch of small functions with specific tasks to create one large function to draw the scanline without any if''s(and hopefully it''ll run faster...). I heard of a way to do this using assembly... but I don''t know any assembly and would that have to be processor specific? Is there a way to do this without using assembly?

Share this post


Link to post
Share on other sites
Advertisement
Ahh I get what your saying.... duh. Good call, I guess I just wanted to do it the hard way .

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!