Difference between revisions of "Chili Framework"
From Chilipedia
Line 2: | Line 2: | ||
=== Criticisms === | === Criticisms === | ||
− | + | Some people resent a proprietary framework being used in the tutorials. Fuck em. | |
[[File:http://gph.is/1feRo0E]] | [[File:http://gph.is/1feRo0E]] | ||
Line 19: | Line 19: | ||
| Cell C | | Cell C | ||
|} | |} | ||
+ | |||
+ | Some Code:<br /> | ||
+ | |||
+ | <syntaxhighlight lang="cpp"> | ||
+ | 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" ); | ||
+ | } | ||
+ | </syntaxhighlight> |
Revision as of 10:16, 1 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.
Criticisms
Some people resent a proprietary framework being used in the tutorials. Fuck em.
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" );
}