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 <stdlib.h> | |
#include <stdint.h> | |
#include <limits.h> | |
#include <assert.h> | |
#include <stdbool.h> | |
typedef uint32_t EId; | |
typedef struct |
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 <stdlib.h> | |
typedef struct | |
{ | |
unsigned int size; | |
void (*destructor)(); | |
int length; | |
int reserved; | |
char* bytes; |
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
Shader "Custom/Fog" | |
{ | |
Properties | |
{ | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Texture", 2D) = "white" {} | |
_NoiseTex ("NoiseTexture", 2D) = "white" {} | |
} | |
SubShader | |
{ |
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 UnityEngine; | |
using UnityEngine.Networking; | |
using System.Collections; | |
using System.Collections.Generic; | |
[CreateAssetMenu] | |
public class GoogleTranslateService : ScriptableObject | |
{ | |
public static GoogleTranslateService instance; |
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> | |
// Make a FOREACH macro | |
#define FE_0() | |
#define FE_1(X) *((X*)(args[0])) | |
#define FE_2(X, ...) FE_1(__VA_ARGS__), *((X*)(args[1])) | |
#define FE_3(X, ...) FE_2(__VA_ARGS__), *((X*)(args[2])) | |
#define FE_4(X, ...) FE_3(__VA_ARGS__), *((X*)(args[3])) | |
#define FE_5(X, ...) FE_4(__VA_ARGS__), *((X*)(args[4])) | |
#define FE_6(X, ...) FE_5(__VA_ARGS__), *((X*)(args[5])) |
NewerOlder