Difference between revisions of "Chili Framework"
Line 1: | Line 1: | ||
The Chili Framework is designed as a vehicle to make it fun and easy to learn C++ in a graphical context. It wraps a bunch of pain-in-the-ass WinAPI and Direct3D bullshit giving us direct access to the framebuffer for manipulating screen pixels. This allows us to explore basic graphical concepts at the same time that we are learning the fundamentals of the C++ language. Our research shows that this results in a 69% lower incidence of learners shitting themselves to death out of sheer boredom. | The Chili Framework is designed as a vehicle to make it fun and easy to learn C++ in a graphical context. It wraps a bunch of pain-in-the-ass WinAPI and Direct3D bullshit giving us direct access to the framebuffer for manipulating screen pixels. This allows us to explore basic graphical concepts at the same time that we are learning the fundamentals of the C++ language. Our research shows that this results in a 69% lower incidence of learners shitting themselves to death out of sheer boredom. | ||
− | === | + | == Core Classes == |
− | + | ||
− | + | === Game === | |
+ | The <code>Game</code> class is where you put the code to make the game do its thing. The predefined member functions <code>UpdateModel()</code> and <code>ComposeFrame()</code> are where you put your game logic and your rendering code, respectively. This <code>Game</code> is composed of the <code>Graphics</code> object used for drawing and keeps a reference to the <code>MainWindow</code> object to interface with the Windows system. | ||
− | + | === Graphics === | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |||
− | + | === MainWindow === | |
− | + | === Keyboard === | |
− | + | === Mouse === | |
− | + | === Color === | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | === Criticisms === | |
− | + | Some people resent a proprietary framework being used in the tutorials. Fuck em. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Revision as of 14:46, 4 July 2016
The Chili Framework is designed as a vehicle to make it fun and easy to learn C++ in a graphical context. It wraps a bunch of pain-in-the-ass WinAPI and Direct3D bullshit giving us direct access to the framebuffer for manipulating screen pixels. This allows us to explore basic graphical concepts at the same time that we are learning the fundamentals of the C++ language. Our research shows that this results in a 69% lower incidence of learners shitting themselves to death out of sheer boredom.
Contents
Core Classes
Game
The Game
class is where you put the code to make the game do its thing. The predefined member functions UpdateModel()
and ComposeFrame()
are where you put your game logic and your rendering code, respectively. This Game
is composed of the Graphics
object used for drawing and keeps a reference to the MainWindow
object to interface with the Windows system.
Graphics
MainWindow
Keyboard
Mouse
Color
Criticisms
Some people resent a proprietary framework being used in the tutorials. Fuck em.