Archived

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

Lash

Pasting Together A Function

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