Skip to main content
gamedev.net
🔒 Locked

render states

Started by Arcibald Wearlot 0 replies 500+ views
Original Post
Arcibald Wearlot
Arcibald Wearlot
do you have to reset the render states every frame? for example, can i set up the fog render states at the start of the game and forget about them, or do i have to set them again every time i start a frame? im asking this because im working on an engine that keeps track of the render states and resets them every frame, so i can set them only once and forget.. but is this really necessary? i think its not, but i want to be sure
Endurion
Endurion
DirectX will remember previously set states, unless your device is lost.

Set your states after first startup (never rely on default states being set) and after restoring a lost device.
Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

Topic Locked

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

Sign in to reply to this topic.