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 <iostream> | |
#include <memory> | |
#include "EntityManager.h" | |
#include "Example/ShipEntitySystem.h" | |
#include "Example/SpriteComponent.h" | |
#include <SFML/Graphics.hpp> | |
#include "ComponentManager.h" | |
using namespace std; | |
using namespace zmc; |
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 "ShipEntitySystem.h" | |
ShipEntitySystem::ShipEntitySystem(sf::RenderWindow &window) | |
: mRenderWindow(window) | |
{ | |
} | |
ShipEntitySystem::~ShipEntitySystem() | |
{ |
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
#ifndef SPRITECOMPONENT_H | |
#define SPRITECOMPONENT_H | |
#include "BaseComponent.h" | |
#include <SFML/Graphics/Sprite.hpp> | |
#include <SFML/Graphics/Texture.hpp> | |
class SpriteComponent : public zmc::BaseComponent, public sf::Sprite | |
{ | |
public: | |
SpriteComponent(int componentType) |
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 <iostream> | |
#include <Windows.h> | |
#include <NuiApi.h> | |
int main() { | |
INuiSensor *nuiSensor; | |
HRESULT hr; | |
HANDLE mHandleSkeletonStream; | |
HANDLE mHandleNextSkeletonEvent; | |
int sensorCount = 0; |
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
INCLUDEPATH += D:\SFML2\include | |
LIBS += D:\SFML2\lib\sfml-system.lib \ | |
D:\SFML2\lib\sfml-window.lib \ | |
D:\SFML2\lib\sfml-graphics.lib \ | |
D:\SFML2\lib\sfml-audio.lib \ | |
D:\SFML2\lib\sfml-network.lib |
NewerOlder