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
local sqlite3 = StaticLibrary { | |
Name = "sqlite3", | |
Sources = { | |
{ "sqlite3/sqlite3.c" } | |
}, | |
Propagate = { Env = { | |
CPPPATH = { | |
"sqlite3", | |
}, | |
}, }, |
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
ctx->PSSetShader(shaders.ps, NULL, 0); | |
ctx->PSSetShaderResources(0, 1, &diffuse_texture.view.p); | |
ctx->PSSetSamplers(0, 1, &diffuse_texture.state.p); |
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 <boost/phoenix.hpp> | |
#include <boost/fusion/adapted.hpp> | |
#include <iostream> | |
struct S | |
{ | |
int a0, a1, a2, a3, a4, a5, a6, a7; | |
}; |
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
Messages begin with one octet of message tag. | |
Primitives | |
========== | |
sized-string: one octet of size followed by that many printable low-ascii characters | |
Client -> Server | |
================ | |
0x3F: HELLO | |
Payload: username :: sized-string |
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
#define LINE_WEIGHT (1) | |
#define LINE_POWER (1) | |
texture tex : WAVEFORMDATA; | |
sampler sTex = sampler_state | |
{ | |
Texture = (tex); | |
MipFilter = LINEAR; | |
MinFilter = LINEAR; |
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
texture tex : WAVEFORMDATA; | |
sampler sTex = sampler_state | |
{ | |
Texture = (tex); | |
MipFilter = LINEAR; | |
MinFilter = LINEAR; | |
MagFilter = LINEAR; | |
AddressU = Clamp; |
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
texture tex : WAVEFORMDATA; | |
sampler sTex = sampler_state | |
{ | |
Texture = (tex); | |
MipFilter = LINEAR; | |
MinFilter = LINEAR; | |
MagFilter = LINEAR; | |
AddressU = Clamp; |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package se.zao.obj; | |
/** | |
* | |
* @author Lars | |
*/ |
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 DrawGame() | |
{ | |
double const t = glfwGetTime(); | |
glUseProgram(tileProgram); | |
BindStreams(tileCoord->vbs, tileCoord->bindings); | |
geom::ShaderLocations::Semantic semantics[] = { | |
geom::MakeSemantic("MODEL"), | |
geom::MakeSemantic("VIEW"), | |
geom::MakeSemantic("PROJECTION"), |
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
diff --git a/cmake/FindHPX_Boost.cmake b/cmake/FindHPX_Boost.cmake | |
index e2ad0d9..f3977f0 100644 | |
--- a/cmake/FindHPX_Boost.cmake | |
+++ b/cmake/FindHPX_Boost.cmake | |
@@ -57,7 +57,11 @@ macro(build_boost_libname BOOST_RAW_NAME) | |
endif() | |
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" | |
OR "${CMAKE_CXX_COMPILER}" MATCHES "clang") | |
- set(BOOST_COMPILER_VERSION "-clang") | |
+ if(APPLE) |