Skip to content

Instantly share code, notes, and snippets.

View Furkanzmc's full-sized avatar
🏣
Working from the office

Furkan Üzümcü Furkanzmc

🏣
Working from the office
View GitHub Profile
@Furkanzmc
Furkanzmc / main.cpp
Last active August 29, 2015 13:58
main.cpp file for the zmcEntitySystem tutorial
#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;
@Furkanzmc
Furkanzmc / ShipEntitySystem.cpp
Last active August 29, 2015 13:58
An Entity System that inherits BaseEntitySystem
#include "ShipEntitySystem.h"
ShipEntitySystem::ShipEntitySystem(sf::RenderWindow &window)
: mRenderWindow(window)
{
}
ShipEntitySystem::~ShipEntitySystem()
{
@Furkanzmc
Furkanzmc / SpriteComponent.h
Last active August 29, 2015 13:58
A component definition
#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)
@Furkanzmc
Furkanzmc / mainKinect.cpp
Last active January 2, 2016 19:49
Go through all Kinects...
#include <iostream>
#include <Windows.h>
#include <NuiApi.h>
int main() {
INuiSensor *nuiSensor;
HRESULT hr;
HANDLE mHandleSkeletonStream;
HANDLE mHandleNextSkeletonEvent;
int sensorCount = 0;
@Furkanzmc
Furkanzmc / gist:8336889
Created January 9, 2014 16:17
*.pro File for SFML
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