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 <string> | |
#include <iostream> | |
#include <sstream> | |
#include <cstdint> | |
#include <tuple> | |
/* | |
* It's still not too obvious to me why this is the case, but when trying to use uint8_t here instead of uint16_t for the tuples, | |
* this resulted in the string not being colored. Changing this to uint16_t allowed the string to be colored successfully. | |
*/ |
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
/////////////////////////////////////////////////////////////////////////////// | |
// | |
// libzip-decompress-file.cpp | |
// | |
// Written by Gregory F Martin | |
// | |
// | |
// This source code is public domain. It references a Zip Archive which is | |
// not included in this Gist. | |
// |
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 <zip.h> | |
int main () { | |
printf ("Attempting to open a ZIP file...\n"); | |
int zfile_err = 0; | |
zip_t* zfile = zip_open ("./testarchive.zip", ZIP_CHECKCONS | ZIP_RDONLY, &zfile_err); | |
if (NULL == zfile) { |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using SFML.System; | |
using SFML.Window; | |
using SFML.Graphics; | |
using SFML.Audio; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using SFML.System; | |
using SFML.Window; | |
using SFML.Graphics; | |
namespace SFMLNetGameCore { |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using SFML.Graphics; | |
using SFML.Window; | |
using SFML.System; | |
namespace SFMLNetSpriteMover { |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using SFML.Graphics; | |
using SFML.Window; | |
namespace SFMLNetFontPlayground { | |
static class SFMLNetFontPlayground { |