Skip to content

Instantly share code, notes, and snippets.

View ryanbartley's full-sized avatar

Ryan Bartley ryanbartley

View GitHub Profile
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DFT2_BUILD_LIBRARY -DFT_DEBUG_LEVEL_TRACE -I/Users/ryanbartley/Documents/manifold-client/src -I/Users/ryanbartley/Documents/manifold-client/src/blocks/Cinder-SSL/lib/include -I/Users/ryanbartley/Documents/manifold-client/src/blocks/Cinder-HTTP/src -I/Users/ryanbartley/Documents/manifold-client/src/blocks/Cinder-WebsocketPP/websocketpp -I/Users/ryanbartley/Documents/manifold-client/cinder -I/Users/ryanbartley/Documents/manifold-client/projects/Manifold/proj/cmake/SYSTEM -I/Users/ryanbartley/Documents/manifold-client/cinder/include/asio -I/Users/ryanbartley/Documents/manifold-client/src/blocks/Cinder-WebsocketPP/src -I/Users/ryanbartley/Documents/manifold-client/src/blocks/Cinder-Pango/include/macosx/pango-1.0 -I/Users/ryanbartley/Documents/manifold-client/src/blocks/Cinder-Pango/include/macosx/glib-2.0 -I/Users/ryanbartley/Documents/manifold-client/src/blocks/Cinder-Pango/include/macosx/harfbuzz -I/Users/ryanbartley/D
Ld build/Debug/Basic.app/Contents/MacOS/Basic normal x86_64
cd /Users/ryanbartley/Documents/clean_cinder/blocks/Cinder-SdfText/samples/Basic/xcode
export MACOSX_DEPLOYMENT_TARGET=10.8
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -L/Users/ryanbartley/Documents/clean_cinder/blocks/Cinder-SdfText/samples/Basic/xcode/build/Debug -F/Users/ryanbartley/Documents/clean_cinder/blocks/Cinder-SdfText/samples/Basic/xcode/build/Debug -filelist /Users/ryanbartley/Documents/clean_cinder/blocks/Cinder-SdfText/samples/Basic/xcode/build/Basic.build/Debug/Basic.build/Objects-normal/x86_64/Basic.LinkFileList -mmacosx-version-min=10.8 -dead_strip -Xlinker -no_deduplicate ../../../../../lib/libcinder_d.a -stdlib=libc++ -fobjc-link-runtime -framework AVFoundation -framework CoreMedia -framework Cocoa -framework OpenGL -framework CoreVideo -framework
# Check whether --with-coretext was given.
if test "${with_coretext+set}" = set; then :
withval=$with_coretext;
else
with_coretext=no
fi
have_coretext=false
if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by HarfBuzz configure 1.3.2, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --host=arm-apple-darwin --disable-shared --enable-static=yes --prefix=/Users/~USER~/Documents/clean_cinder/blocks/Cinder-Harfbuzz/install/tmp/harfbuzz_install --enable-gtk-doc-html=no --with-cairo=yes --with-fontconfig=yes --with-freetype=yes --with-coretext=auto --with-glib=no --with-gobject=no
## --------- ##
## Platform. ##
bool loadGlyph(Shape &output, FT_Face face, unsigned int glyphIndex, double *advance) {
enum PointType {
NONE = 0,
PATH_POINT,
QUADRATIC_POINT,
CUBIC_POINT,
CUBIC_POINT2
};
auto pointTypeOutput = []( PointType type ) {
ci::gl::SdfTextRef sdfText;
std::array<gl::SdfText::Font::Glyph, 5> *descentGlyphs;
uint32_t texture;
float furtherOffset;
if( genName == GeneratorName::GEO_LABEL_COUNTRY || genName == GeneratorName::CLUSTER_LABEL_CONTINENT ) {
sdfText = mBoldSdf;
descentGlyphs = &mBoldDescentGlyphs;
furtherOffset = 1.51;
texture = 0;
}
std::vector<SdfText::InstanceVertex> SdfText::getGlyphVertices( const SdfText::Font::GlyphMeasures &glyphMeasures, const DrawOptions &options, const std::vector<ColorA8u> &colors )
{
const auto& textures = mTextureAtlases->mTextures;
const auto& glyphMap = mTextureAtlases->mGlyphInfo;
const auto& sdfScale = mTextureAtlases->mSdfScale;
const auto& sdfPadding = mTextureAtlases->mSdfPadding;
if( textures.empty() ) {
return std::vector<SdfText::InstanceVertex>();
}
<animation id="Cube_location_X">
<source id="Cube_location_X-input">
<float_array id="Cube_location_X-input-array" count="4">0.04166662 0.5416667 1.083333 1.666667</float_array>
<technique_common>
<accessor source="#Cube_location_X-input-array" count="4" stride="1">
<param name="TIME" type="float"/>
</accessor>
</technique_common>
</source>
<source id="Cube_location_X-output">
GLTFAnimationFlattener(COLLADAFW::Node *node) {
this->_transformsOrder = std::shared_ptr <std::vector<std::string> > (new std::vector<std::string>);
const COLLADAFW::TransformationPointerArray& transformations = node->getTransformations();
size_t transformationsCount = transformations.getCount();
int index = 0;
std::cout << "--------------------------------------------------------------------------------------" << std::endl;
this->_hasAnimatedScale = this->_hasAnimatedTranslation = this->_hasAnimatedRotation = false;
this->_targetUID = node->getOriginalId();
std::cout << "Target UID; " << this->_targetUID << " name: " << node->getName() << " trans count: " << transformationsCount << std::endl;
@ryanbartley
ryanbartley / HelloBatch.cpp
Created May 19, 2016 21:13
Helper files getting into OpenGL and Cinder
#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
using namespace ci;
using namespace ci::app;
using namespace std;
class HelloTriangleApp : public App {
public: