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 <stdio.h> | |
#include <string.h> | |
#include <citro3d.h> | |
#include "render.h" | |
#include "world.h" | |
#include "player.h" |
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
// When it's this way it flickers with 3D disabled | |
BufInfo_Init(bufInfo); | |
for (int i = 0; i < CHUNK_HEIGHT / CHUNK_CLUSTER_HEIGHT; i++) | |
if (c->data[i].vbo) BufInfo_Add(bufInfo, c->data[0].vbo, sizeof(world_vertex), 3, 0x210); | |
if (bufInfo->bufCount) C3D_DrawArrays(GPU_TRIANGLES, 0, c->vertexCount); | |
// But this way the flickering is gone | |
BufInfo_Init(bufInfo); | |
for (int i = 0; i < CHUNK_HEIGHT / CHUNK_CLUSTER_HEIGHT; i++) { |
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
import macros, tables, hashes, strutils, oids | |
type | |
VariantTypes* = enum | |
variInt, variFloat32, variString, variBool | |
Variant* = object | |
case variant: VariantTypes | |
of variInt: intVal: int | |
of variFloat32: float32Val: float32 | |
of variString: stringVal: 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
#based of this: https://github.com/yglukhov/sound | |
#[ | |
The MIT License (MIT) | |
Copyright (c) 2015 Yuriy Glukhov | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
static var reFieldPart = ~/(\.|@(:?))(\w*)$/; | |
static function calculateCompletionPosition(text:String, index:Int):CompletionPosition { | |
if (reFieldPart.match(text)) | |
return { | |
pos: index - reFieldPart.matched(3).length, | |
toplevel: false, | |
}; | |
var bracketLevel = 0; | |
var i = index; |
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
import | |
../../felis/core/[context, engine, entity, systems, assetmanager], ../../felis/scene/transform2d, | |
../../felis/gfx/[sprite, texture], ../../felis/input/input, ../../felis/helper/box, | |
glm | |
type | |
PaddleController {.pure.} = enum | |
Player0, Player1, Cpu | |
Paddle = object |
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
#[ | |
Copyright (c) 2019 RSDuck/Kemal Afzal | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software | |
and associated documentation files (the "Software"), to deal in the Software without restriction, | |
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or |
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
/*--------------------------------------------------------------------------------- | |
Based upon https://github.com/devkitPro/nds-examples/tree/master/Graphics/Effects/windows | |
A very simple window demo which displays a square window | |
---------------------------------------------------------------------------------*/ | |
#include <nds.h> | |
#include "drunkenlogo.h" | |
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 the most common headers from the C standard library | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <malloc.h> | |
#include <stdint.h> | |
// Include the main libnx system header, for Switch development | |
#include <switch.h> |
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
# Blender v2.79 (sub 0) OBJ File: '' | |
# www.blender.org | |
mtllib ico.mtl | |
o Icosphere | |
v 0.000000 -1.000000 0.000000 | |
v 0.723607 -0.447220 0.525725 | |
v -0.276388 -0.447220 0.850649 | |
v -0.894426 -0.447216 0.000000 | |
v -0.276388 -0.447220 -0.850649 | |
v 0.723607 -0.447220 -0.525725 |
OlderNewer