Refactored code in Tutorial 05 (changed order of operaions - moved rendering resources creation to the beginning).

This commit is contained in:
plapins
2016-07-05 00:20:14 +02:00
parent 05959fd7e5
commit 1570a40314
4 changed files with 112 additions and 118 deletions

View File

@@ -25,15 +25,15 @@ int main( int argc, char **argv ) {
}
// Tutorial 05
if( !tutorial05.CreateRenderingResources() ) {
return -1;
}
if( !tutorial05.CreateRenderPass() ) {
return -1;
}
if( !tutorial05.CreatePipeline() ) {
return -1;
}
if( !tutorial05.CreateRenderingResources() ) {
return -1;
}
if( !tutorial05.CreateVertexBuffer() ) {
return -1;
}