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 <Polycode.h> | |
#include "polycode/ide/PolycodeIDEApp.h" | |
#include "polycode/ide/PolycodeWinIDEView.h" | |
#include "windows.h" | |
#include "resource.h" | |
#include <Shlobj.h> | |
#include <Shlwapi.h> | |
#include <shellapi.h> | |
#include <Pathcch.h> |
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
CC=g++ | |
SRCDIR=../../src | |
ASSETDIR=../../assets | |
.SUFFIXES: .io .do .dio | |
SRCCORE = $(SRCDIR)/bindings/javascript/PolycodeJS.cpp $(SRCDIR)/bindings/lua/PolycodeLua.cpp $(SRCDIR)/core/lodepng.cpp $(SRCDIR)/core/PolyBasicFileProvider.cpp $(SRCDIR)/core/PolyBezierCurve.cpp $(SRCDIR)/core/PolyBone.cpp $(SRCDIR)/core/PolyCamera.cpp $(SRCDIR)/core/PolyClient.cpp $(SRCDIR)/core/PolyColor.cpp $(SRCDIR)/core/PolyConfig.cpp $(SRCDIR)/core/PolyCore.cpp $(SRCDIR)/core/PolyCoreFileProvider.cpp $(SRCDIR)/core/PolyCoreInput.cpp $(SRCDIR)/core/PolyCoreServices.cpp $(SRCDIR)/core/PolyCubemap.cpp $(SRCDIR)/core/PolyData.cpp $(SRCDIR)/core/PolyEntity.cpp $(SRCDIR)/core/PolyEvent.cpp $(SRCDIR)/core/PolyEventDispatcher.cpp $(SRCDIR)/core/PolyEventHandler.cpp $(SRCDIR)/core/PolyFont.cpp $(SRCDIR)/core/PolyFontGlyphSheet.cpp $(SRCDIR)/core/PolyFontManager.cpp $(SRCDIR)/core/PolyGPUDrawBuffer.cpp $(SRCDIR)/core/PolyImage.cpp $(SRCDIR)/core/PolyInputEvent.cpp $(SRCDIR)/core/PolyLabel.cpp $(SRCDIR)/core/PolyLogger.cpp $(SRCDIR)/core/Pol |
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 <Polycode.h> | |
#include "HelloPolycodeApp.h" | |
#include "PolycodeView.h" | |
#include "windows.h" | |
using namespace Polycode; | |
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) | |
{ | |
PolycodeView *view = new PolycodeView(hInstance, nCmdShow, L"Polycode Example"); |
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
CoreServices::getInstance()->getResourceManager()->addArchive("default.pak"); | |
CoreServices::getInstance()->getResourceManager()->addDirResource("default", false); | |
CoreServices::getInstance()->getResourceManager()->addArchive("UIThemes.pak"); | |
CoreServices::getInstance()->getConfig()->loadConfig("Polycode", "UIThemes/dark/theme.xml"); | |
//creating HUD | |
hud = new Scene(Scene::SCENE_2D_TOPLEFT); | |
fps = new UILabel("FPS: " + String::NumberToString(core->getFPS()), 16, "mono"); //fps is a UILabel declared in the header file | |
fps->setPosition(core->getXRes() - 75, 8); |
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
std::vector<String> Win32Core::openFilePicker(std::vector<CoreFileExtension> extensions, bool allowMultiple) { | |
OPENFILENAME ofn; | |
wchar_t fBuffer[2048]; | |
wchar_t filterString[2048]; | |
ZeroMemory(&ofn, sizeof(OPENFILENAME)); | |
ofn.lStructSize = sizeof ( ofn ); |
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
<?xml version="1.0" ?> | |
<plugins version="1"> | |
<plugin name="WoUSpaceShip" polystring:fileext="" type="0"> | |
<sheet> | |
<props> | |
<prop type="11" name="name" /> | |
<prop type="4" name="maxHitPoints" /> | |
<prop type="4" name="maxWeapons1Slots" /> | |
<prop type="4" name="maxWeapons2Slots" /> | |
<prop type="4" name="maxEngines" /> |
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 <Polycode.h> | |
#include "HelloPolycodeApp.h" | |
#include "PolycodeView.h" | |
#include "windows.h" | |
using namespace Polycode; | |
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) | |
{ | |
#if defined(_MSC_VER) && defined(_DEBUG) |
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
@echo on | |
set poly=%cd% | |
mkdir Build | |
cd Build | |
cmake -G "Visual Studio 12" .. | |
C: | |
cd %programfiles(x86)%\Microsoft Visual Studio 12.0\Common7\IDE\" | |
devenv.exe "%poly%\Dependencies\Build\PolycodeDependencies.sln" /build "Debug|Win32" /project "ALL_BUILD" | |
devenv.exe "%poly%\Dependencies\Build\PolycodeDependencies.sln" /build "Release|Win32" /project "ALL_BUILD" | |
devenv.exe "%poly%\Dependencies\Build\PolycodeDependencies.sln" /build "Debug|Win32" /project "wglext" |
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
@echo on | |
set poly=%cd% | |
mkdir Build | |
cd Build | |
cmake -G "Visual Studio 10" .. | |
C: | |
cd %programfiles(x86)%\Microsoft Visual Studio 10.0\Common7\IDE\" | |
VCExpress.exe "%poly%\Dependencies\Build\PolycodeDependencies.sln" /build "Debug|Win32" /project "ALL_BUILD" | |
VCExpress.exe "%poly%\Dependencies\Build\PolycodeDependencies.sln" /build "Release|Win32" /project "ALL_BUILD" | |
VCExpress.exe "%poly%\Dependencies\Build\PolycodeDependencies.sln" /build "Debug|Win32" /project "wglext" |