This file contains hidden or 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
// | |
// Created by Victor Holt on 3/18/2017. | |
// Reference: (rbnpontes) http://discourse.urho3d.io/t/a-mesh-generator/2361 | |
// | |
#pragma once | |
#include <gs-common/PreCompiledHeadersUrho.h> | |
using namespace Urho3D; | |
namespace Sencha | |
{ |
This file contains hidden or 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 <string> | |
#include <functional> | |
#include <vector> | |
using namespace std; | |
#define StringArray std::vector<std::string> | |
#define ForEachMethod(a) std::function<void(const a&)> | |
#define ForEachTemplate(a, b) template<class a, class b> | |
#define ForEachString forEach<StringArray, string> |
This file contains hidden or 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 <string> | |
#include <functional> | |
#include <vector> | |
template<class ArrayType, class ValueType> | |
void forEach(const ArrayType& arr, std::function<void(const ValueType&)> callback) { | |
for (auto entry : arr) { | |
callback(entry); | |
} |
This file contains hidden or 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
// | |
// Created by Victor Holt on 3/18/2017. | |
// | |
#include <rogue-game/graphics/CustomMesh.h> | |
using namespace Urho3D; | |
using namespace Sencha; | |
//! Constructor. | |
//! \param context | |
//! \param isDynamic |
This file contains hidden or 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
// | |
// Created by Victor Holt on 3/18/2017. | |
// Reference: (rbnpontes) http://discourse.urho3d.io/t/a-mesh-generator/2361 | |
// | |
#pragma once | |
#include <gs-common/PreCompiledHeadersUrho.h> | |
using namespace Urho3D; | |
namespace Sencha | |
{ |
This file contains hidden or 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
/************************************ | |
* Example of storing functions inside | |
* of a class. | |
* | |
* Tested with C++14 | |
************************************/ | |
#include <iostream> | |
#include <vector> | |
#include <functional> |
This file contains hidden or 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 "../PreCompiledHeaders.h" | |
#include "CurvedText3D.h" | |
using namespace CorFramework; | |
namespace Urho3D | |
{ | |
extern const char* horizontalAlignments[]; | |
extern const char* verticalAlignments[]; | |
extern const char* textEffects[]; |
This file contains hidden or 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
#pragma once | |
#include <Urho3D/Graphics/Drawable.h> | |
#include <Urho3D/Graphics/VertexBuffer.h> | |
#include <Urho3D/Math/Matrix3x4.h> | |
#include <Urho3D/UI/Text.h> | |
#include <Urho3D/UI/Text3D.h> | |
#include "../../Utils/LineTool.h" | |
using namespace CorFramework; |
This file contains hidden or 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
cmake_minimum_required(VERSION 2.8 FATAL_ERROR) | |
# Above line indicates to Cmake that minimum version 2.8 is required. | |
# As you may have noted all lines beginning with hash symbol are treated as comments by Cmake. | |
SET(sampleName MyApp) | |
# In the above line we declared a variable sampleName and assigned it a value MyApp. We will make use of the same later.project(PrjMyApp) | |
# here we define the project or solution (for visual studio) name | |
# In following lines we try to find out the packages of additional libraries, if reqd. Here we are trying to locate PCL and mrpt library. | |
# u may replace the names by yours. Each such package should have a Cmake file in them, if not then we may have to manually define the paths. | |
# we Show that later. |
NewerOlder