Created
March 21, 2013 00:25
-
-
Save Lavesson/5209741 to your computer and use it in GitHub Desktop.
Blog post demo. Case 2.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main() | |
{ | |
// Create the device, buffer and a mesh | |
auto device = new Device(); | |
auto buffer = device->CreateVertexBuffer(); | |
auto mesh = new Mesh(buffer); | |
// ... Doing a bunch of stuff | |
// Cleanup | |
delete mesh; | |
delete buffer; // Assuming that device doesn't remove this pointer | |
delete device; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment