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
public struct LineP | |
{ | |
public uint v1; | |
public uint v2; | |
public LineP(uint v1,uint v2) | |
{ | |
this.v1 = v1; | |
this.v2 = v2; | |
} |
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 SharpDX; | |
using SharpDX.Direct3D11; | |
using SharpDX.DXGI; | |
using System.Threading; | |
using Device = SharpDX.Direct3D11.Device; |
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.Collections.Generic; | |
using UnityEngine; | |
using System.IO; | |
using System.Text; | |
using System; | |
using Newtonsoft.Json; | |
namespace CIS | |
{ | |
public class GradleConfig |
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 Newtonsoft.Json; | |
using System; | |
public class Vec4Conv : JsonConverter | |
{ | |
public override bool CanConvert(Type objectType) | |
{ | |
if (objectType == typeof(Vector4)) |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using System.IO; | |
public class SpriteAtlasExporter : MonoBehaviour { | |
public Sprite sprite; | |
RenderTexture tex; |
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.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
using UnityEditor; | |
public class SpriteMeshMerger | |
{ |
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
{ | |
"projectfolder": "TestMap", | |
"wxappid": "wx6ac********", | |
"projectname":"testproj", | |
"res":{ | |
"compressFolders": [ | |
"spriteatlas", | |
"UIAtlas" | |
] | |
}, |
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.Collections.Generic; | |
using UnityEngine; | |
using System.Runtime.InteropServices; | |
using System; | |
using System.IO; | |
using System.Runtime.Serialization.Formatters.Binary; | |
[ExecuteInEditMode] | |
public class MeshSerialization : MonoBehaviour { |
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
function BindFunc(tar:object,property:string,f:(v:any)=>void){ | |
var property_emit = BIND_EMITTER(property); | |
if(tar.hasOwnProperty(property_emit)){ | |
tar[property_emit].push(f); | |
} | |
else{ | |
BindSetup(tar,property); | |
tar[property_emit].push(f); | |
} | |
} |
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
export class Float16{ | |
public static ByteToFloat16(uint16:number){ | |
let d = uint16; | |
let negative = ((d>>15) & 1) !=0; | |
let mask = 0b11111; | |
let exponent = (d >>10) & mask; | |
let significand = d & 0b1111111111; | |
if(exponent == 0 && significand == 0){ | |
return negative ? -0:0; | |
} |
OlderNewer