Difference between revisions of "Chili Framework"

From Chilipedia
Jump to: navigation, search
(Game)
(Graphics)
Line 7: Line 7:
  
 
=== Graphics ===
 
=== Graphics ===
 
+
This class provides an interface to the graphical output of the application. Use <code>Graphics</code> to draw on the screen, anything you like, even dicks (''especially'' dicks). The <code>PutPixel()</code> is generally how this is gone about, although later on more sophisticated dick-drawing routines are created based on <code>PutPixel()</code>. You can also use <code>Graphics::ScreenWidth</code> etc. to make sure you keep your dicks inside the screen boundaries (color within the lines kiddies).
  
 
=== MainWindow ===
 
=== MainWindow ===

Revision as of 15:07, 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.

Core Classes

Game

The Game class is where you put the code to make the game do the things. The predefined member functions UpdateModel() and ComposeFrame() are where you put your game logic and your rendering code, respectively. Game is composed of the Graphics object used for drawing and keeps a reference to the MainWindow object to interface with the Windows system (which includes the keyboard and mouse inputs).

Graphics

This class provides an interface to the graphical output of the application. Use Graphics to draw on the screen, anything you like, even dicks (especially dicks). The PutPixel() is generally how this is gone about, although later on more sophisticated dick-drawing routines are created based on PutPixel(). You can also use Graphics::ScreenWidth etc. to make sure you keep your dicks inside the screen boundaries (color within the lines kiddies).

MainWindow

Keyboard

Mouse

Color

Criticisms

Some people resent a proprietary framework being used in the tutorials. Fuck em.