TheGovernorsJunk / CaulsCastle

Isometric Action RPG
http://thegovernorsjunk.github.io/CaulsCastle
3 stars 3 forks source link

Overhaul rendering (viewports) #30

Open evinstk opened 8 years ago

evinstk commented 8 years ago

The C-style state machine way of OpenGL flies in the face of more object-oriented programming. Implement an abstraction of viewports that takes advantage of RAII. If possible, somehow encapsulate the global state of OpenGL.

evinstk commented 8 years ago

We'll probably need a complementary Window class.

evinstk commented 8 years ago

If there's a programmer's equivalent to writer's block, I have it.

GlasselRat commented 8 years ago

Time travel. Boom. You're welcome.

evinstk commented 8 years ago

:+1: (Note to self: Experiment with a view lock that sets glViewport for scoped lifetime.)

evinstk commented 8 years ago

Ryan, I'm glad my issues to myself are fun for you.