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
var dat_format = { | |
name: "Binary", | |
extension: "dat", | |
write:function(map, filename) { | |
var file = new BinaryFile(filename, BinaryFile.WriteOnly); | |
var tilesets = map.usedTilesets(); | |
/* Write the amount of tilesets. */ |
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
/* How to use | |
* Supply a texture (probably from a framebuffer) and a depth | |
* texture to the uniforms `u_input' and `u_depth'. Supply the | |
* framebuffer's width and height to `u_width' and `u_height'. | |
* Use this shader to draw the framebuffer output to a fullscreen | |
* quad. */ | |
#begin VERTEX | |
#version 430 core |
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
PHYSFS_init(NULL); | |
PHYSFS_mount("Data.zip "/", 1); | |
const char* filePath = "Data/testFile.txt"; | |
PHYSFS_file* file = PHYSFS_openRead(filePath); | |
if (file == NULL) { | |
printf("Failed to load file: %s.\n", filePath); | |
abort(); | |
} |