Created
May 8, 2012 05:32
-
-
Save WideWord/2632800 to your computer and use it in GitHub Desktop.
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
#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