Chili Framework

From Chilipedia
Revision as of 10:16, 1 July 2016 by Chili (Talk | contribs)

Jump to: navigation, search

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.

Criticisms

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

File:Http://gph.is/1feRo0E

The table's caption
Column header 1 Column header 2 Column header 3
Row header 1 Cell 2 Cell 3
Row header A Cell B Cell C

Some Code:

if( FAILED( hr = pSwapChain->GetBuffer(
      0,
      __uuidof( ID3D11Texture2D ),
      (LPVOID*)&pBackBuffer ) ) )
   {
      throw CHILI_GFX_EXCEPTION( hr,L"Getting back buffer" );
   }

// becomes this
if( FAILED( hr = pSwapChain->GetBuffer(
      0,
      IID_PPV_ARGS( &pBackBuffer ) ) ) )
{
   throw CHILI_GFX_EXCEPTION( hr,L"Getting back buffer" );
}