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 |
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
#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 "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
#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
C:\Program Files (x86)\CMake\bin\cmake.exe -G "Visual Studio 12 2013" -DCMAKE_PREFIX_PATH="D:/OpenCV/build;C:/Qt/Qt5.3.1/5.3/msvc2013" -DCMAKE_INSTALL_PREFIX="./install" -DBR_INSTALL_DEPENDENCIES=ON -DCMAKE_BUILD_TYPE=Release .. |
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
void adjustFontSize(Label *label, const float &desiredSize) | |
{ | |
std::string str = label->getString(); | |
const float estimatedCharSize = label->getBoundingBox().size.width / label->getStringLength(); | |
const float columnNumberToWrap = desiredSize / estimatedCharSize; | |
const float numberOfTimesToWrap = label->getBoundingBox().size.width / desiredSize; | |
for (int i = 1; i < numberOfTimesToWrap; i++) { | |
const int index = columnNumberToWrap * i; | |
std::string splitter = std::isspace(str.at(index)) ? "\n" : "-\n"; |
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
... | |
... | |
... | |
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) | |
// Turn on vertical screen sync under Windows. | |
// (I.e. it uses the WGL_EXT_swap_control extension) | |
typedef BOOL(WINAPI *PFNWGLSWAPINTERVALEXTPROC)(int interval); | |
PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT = NULL; | |
wglSwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC)wglGetProcAddress("wglSwapIntervalEXT"); |
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
set(KinectSDK2_FOUND OFF CACHE BOOL "Kinect 2.x SDK found") | |
set(KINECTSDK20_DIR "NOT FOUND" CACHE PATH "Kinect 2.x SDK path") | |
if(WIN32) | |
if(EXISTS $ENV{KINECTSDK20_DIR}) | |
message(KINECT_FOUND) | |
set(KinectSDK2_FOUND ON CACHE BOOL "Kinect 2.x SDK found" FORCE) | |
set(KinectSDK2_DIR $ENV{KinectSDK2_DIR} CACHE PATH "Kinect 2.x SDK path" FORCE) | |
if(EXISTS $ENV{KINECTSDK20_DIR}/inc) | |
set(KinectSDK2_INCLUDE_DIRS $ENV{KINECTSDK20_DIR}/inc) |
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
Verifying that +furkanzmc is my blockchain ID. https://onename.com/furkanzmc |
OlderNewer