Skip to content

Instantly share code, notes, and snippets.

@WideWord
Created May 8, 2012 05:32
Show Gist options
  • Save WideWord/2632800 to your computer and use it in GitHub Desktop.
Save WideWord/2632800 to your computer and use it in GitHub Desktop.
#include "scene.h"
#include <iostream>
using namespace scene;
int main () {
Scene* scene = new Scene();
GameObject* obj = new GameObject(scene);
Transform* t1 = new Transform(obj);
Transform* t2 = obj->getComponent<Transform>();
std::cout << t1 << std::endl << t2 << std::endl;
t1 == t2
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment