Last active
December 15, 2015 05:29
-
-
Save Lavesson/5209705 to your computer and use it in GitHub Desktop.
Blog post demo. Case 1.
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 device; // Assuming that the device class deletes the buffer | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment