المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Xna Graphics setting advise



C# Programming
01-24-2010, 04:40 AM
I am going to implement a "Select render quality" (high or low)feature into my xna game. A form of achieving this could be:

.... loadingcontent()
if Render is high then
texture = Content.Load("myhighresversion")
else
texture = Content.Load("mylowresversion")
end if
...end loading content()

This way of doin it seems tedious and not very OOP, does any one know a better way of doing this before i result to highschool code full of if statements! :P

Thanks.