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
cc -o libcheetah.so src/image_write.o src/filesystem.o src/particles.o src/framebuffer.o src/window.o src/atlas.o src/generator.o src/tilemap.o src/event.o src/vbo.o src/font.o src/graphics.o src/thread.o src/image.o src/render.o src/shader.o src/SOIL/image_DXT.o src/SOIL/stb_image_aug.o src/SOIL/SOIL.o src/SOIL/image_helper.o -Ofast -fomit-frame-pointer -funroll-loops -mmmx -msse -ftree-vectorize -flto -m32 -fprofile-use -Wall -Winline -pipe -fPIC -shared -L"lib" -lSDL -lGL | |
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../libSDL.so when searching for -lSDL | |
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libSDL.so when searching for -lSDL | |
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lSDL | |
src/generator.o (symbol from plugin): warning: memset used with constant zero length parameter; this could be due to t |
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
build.d(668): Error: cannot implicitly convert expression (indexOf(cast(const(char)[])arg,"[",cast(CaseSensitive)1)) of type long to int | |
build.d(669): Error: cannot implicitly convert expression (lastIndexOf(cast(const(char)[])arg,"]",cast(CaseSensitive)1)) of type long to int |
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
diff --git a/build.d b/build.d | |
index f6d1053..aa1fd18 100644 | |
--- a/build.d | |
+++ b/build.d | |
@@ -665,8 +665,8 @@ foreach (arg; args[1 .. $]) { | |
isDebug = true; | |
continue; | |
} else { | |
- int pi1 = std.string.indexOf(arg, "["); | |
- int pi2 = std.string.lastIndexOf(arg, "]"); |
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
# -*- coding: utf-8 -*- | |
### | |
### USSR-style speech generator v1.0 | |
### | |
### License: WTFPL | |
### | |
import random | |
tier0 = ['Товарищи,', 'С другой стороны', 'Равным образом', 'Не следует, однако, забывать, что', 'Таким образом', 'Повседневная практика показывает, что'] |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<PackageList> | |
<Package name="autoconf"> | |
<HomePage>http://www.gnu.org/software/autoconf/</HomePage> | |
<Version value="2.69"> | |
<URL>http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.xz</URL> | |
<MD5>50f97f4159805e374639a73e2636f22e</MD5> | |
</Version> | |
</Package> |
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
vec4 ApplyColorGrading(vec4 color, in sampler2D ramp) | |
{ | |
// 3d texture unwrapped to 256x16 | |
vec2 offset = vec2(0.5f / 256.0f, 0.5f / 16.0f); | |
float scale = 15.0f / 16.0f; | |
// even and fractional parts of blue component | |
float blueInt = floor(color.b * 15.0) / 16.0f; | |
float blueFract = color.b * 15.0f - blueInt * 16.0f; |
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
BulletManager manager; | |
std::atomic<int> signalQuit; | |
void Thread1() | |
{ | |
while (signalQuit == 0) { | |
manager.Fire(); | |
} | |
} |
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
float CalcMipLevel(float2 inUV) | |
{ | |
float2 uv = inUV * kAtlasedTextureSize; | |
float2 du = ddx(uv0); | |
float2 dv = ddy(uv0); | |
float d = max(dot(du, du), dot(dv, dv)); | |
const float r = pow(2, (kMipCount - 1) * 2); | |
d = clamp(d, 1.0, r); |
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
// GetFramePointer (ASM) | |
.globl GetFramePointer | |
GetFramePointer: | |
mov rp, fp | |
mov pc, lr | |
// Walk the stack | |
struct FramePointer | |
{ | |
pointer_t FP; |
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
namespace internal | |
{ | |
template <typename R, typename ...Args> | |
struct FunctionImplBase | |
{ | |
virtual FORCE_INLINE ~FunctionImplBase() {} | |
virtual R Invoke(Args... args) const = 0; |
OlderNewer