Skip to content

Instantly share code, notes, and snippets.

View madebyjeffrey's full-sized avatar

Jeffrey Drake madebyjeffrey

View GitHub Profile
/Users/drakej/Projects/Myron/Myron/main.cpp:36:24:{36:24-36:33}: error: no matching function for call to 'bind' [3]
main.close.connect(std::bind(close, std::ref(main)));
^~~~~~~~~
/Developer/usr/bin/../lib/c++/v1/functional:1789:1: note: candidate template ignored: couldn't infer template argument '_F' [3]
bind(_F&& __f, _BoundArgs&&... __bound_args)
^
/Developer/usr/bin/../lib/c++/v1/functional:1798:1: note: candidate template ignored: couldn't infer template argument '_R' [3]
bind(_F&& __f, _BoundArgs&&... __bound_args)
In file included from /Developer/SDKs/MacOSX10.7.sdk/usr/local/include/boost/type_traits/has_bit_and.hpp:43:
In file included from /Developer/SDKs/MacOSX10.7.sdk/usr/local/include/boost/type_traits/has_operator.hpp:12:
In file included from /Developer/SDKs/MacOSX10.7.sdk/usr/local/include/boost/type_traits.hpp:35:
In file included from /Developer/SDKs/MacOSX10.7.sdk/usr/local/include/boost/signals/trackable.hpp:13:
In file included from /Developer/SDKs/MacOSX10.7.sdk/usr/local/include/boost/signals/slot.hpp:15:
In file included from /Developer/SDKs/MacOSX10.7.sdk/usr/local/include/boost/signals/signal_template.hpp:21:
In file included from /Developer/SDKs/MacOSX10.7.sdk/usr/local/include/boost/signals/signal0.hpp:24:
In file included from /Developer/SDKs/MacOSX10.7.sdk/usr/local/include/boost/signal.hpp:19:
In file included from /Users/drakej/Projects/Myron/Myron/Myron.h:14:
In file included from /Users/drakej/Projects/Myron/Myron/Myron-Mac.mm:17:
1>c:\libraries\glm-0.9.3.b\glm\core\_detail.hpp(360): error C2059: syntax error : 'constant'
1>c:\libraries\glm-0.9.3.b\glm\core\_detail.hpp(363): error C2143: syntax error : missing ';' before '}'
1>c:\libraries\glm-0.9.3.b\glm\core\_detail.hpp(363): error C2238: unexpected token(s) preceding ';'
1>c:\libraries\glm-0.9.3.b\glm\core\_detail.hpp(373): error C2065: 'int8' : undeclared identifier
1>c:\libraries\glm-0.9.3.b\glm\core\_detail.hpp(376): error C2913: explicit specialization; 'glm::float_or_int_trait' is not a specialization of a class template
1>c:\libraries\glm-0.9.3.b\glm\core\_detail.hpp(382): error C2913: explicit specialization; 'glm::float_or_int_trait' is not a specialization of a class template
1>c:\libraries\glm-0.9.3.b\glm\core\_detail.hpp(388): error C2913: explicit specialization; 'glm::float_or_int_trait' is not a specialization of a class template
1>c:\libraries\glm-0.9.3.b\glm\core\_detail.hpp(394): error C2913: explicit specialization; 'glm::float_or_int_trait' is not a specialization
/Users/drakej/Projects/GrapheinPure/GrapheinPure/main.cpp:60:39:{60:5-60:38}{60:42-60:43}: error: invalid operands to binary expression ('std::__1::basic_ostream<char>' and 'iso::mat4' (aka 'array<vec4, 4>')) [3]
std::cout << "ortho" << std::endl << m << std::endl;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
/Developer/usr/bin/../lib/c++/v1/ostream:172:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'std::__1::basic_ostream<char> &(*)(std::__1::basic_ostream<char> &)' for 1st argument [3]
basic_ostream& operator<<(basic_ostream& (*__pf)(basic_ostream&));
^
/Developer/usr/bin/../lib/c++/v1/ostream:173:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'basic_ios<char_type, traits_type> &(*)(basic_ios<char_type, traits_type> &)' for 1st argument [3]
basic_ostream& operator<<(basic_ios<char_type, traits_type>&
^
/Developer/usr/bin/../lib/c++/v1/ostrea
#!/usr/bin/env runhaskell
ε = 1.0e-7
-- sqrt(7)
f x = x * x - 7
-- secant :: (a -> a) -> a -> a -> a
secant f x = secant' f xLast x
where xLast = x - 0.01
void RenderInfo()
{
std::cout << "OpenGL Rendering Info" << std::endl;
if (glGetString(GL_VENDOR) == NULL)
{
std::cout << "No Vendor String" << std::endl;
return;
}
Format of file:
Field: Entry
Eg.
Name: Triangle
Shader: triangle.vsh, triangle.fsh
Mesh: triangle.x
Vertices: <-0.5, -0.5, 0>,
//
// Object.cpp
// Spider-Fish
//
// Created by Jeffrey Drake on 11-09-29.
// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//
// OpenGL Object
#include "Object.h"
//
// Object.cpp
// Spider-Fish
//
// Created by Jeffrey Drake on 11-09-29.
// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//
// OpenGL Object
#include "Object.h"
void Object::draw()
{
shader.use();
GLuint var = shader.uniformLocation("projectionMatrix");
glUniformMatrix4fv(var, 1, GL_FALSE, glm::value_ptr(projectionMatrix));
var = shader.uniformLocation("viewportTranslation");
glUniformMatrix4fv(var, 1, GL_FALSE, glm::value_ptr(viewportTranslation));