├── h3d
├── col
│ ├── Point.hx
│ ├── Seg.hx
│ └── FPoint.hx
├── mat
│ ├── BlendMode.hx
│ ├── Defaults.hx
│ ├── TextureArray.hx
│ ├── PbrMaterialSetup.hx
│ ├── Texture3D.hx
│ └── MaterialSetup.hx
├── parts
│ ├── default.png
│ ├── defaultAlpha.png
│ └── Collider.hx
├── scene
│ ├── pbr
│ │ ├── envDefault.dds
│ │ ├── envDefault.envd.dds
│ │ ├── envDefault.envs.dds
│ │ ├── lighting_performance_gradient.png
│ │ ├── Decal.hx
│ │ ├── DirLight.hx
│ │ └── Light.hx
│ ├── fwd
│ │ ├── Light.hx
│ │ ├── DirLight.hx
│ │ └── PointLight.hx
│ ├── Light.hx
│ ├── LightSystem.hx
│ ├── Sphere.hx
│ └── MultiMaterial.hx
├── IDrawable.hx
├── shader
│ ├── pbr
│ │ ├── AlphaMultiply.hx
│ │ ├── PerformanceViewer.hx
│ │ ├── Distortion.hx
│ │ ├── GammaCorrect.hx
│ │ ├── CubeLod.hx
│ │ ├── PropsDefinition.hx
│ │ ├── StrengthValues.hx
│ │ ├── PropsTexture.hx
│ │ ├── PropsValues.hx
│ │ └── ToneMapping.hx
│ ├── WhiteAlpha.hx
│ ├── AlphaMult.hx
│ ├── FlipBackFaceNormal.hx
│ ├── AlphaChannel.hx
│ ├── DisplacementDisplay.hx
│ ├── GenTexture.hx
│ ├── ColorMult.hx
│ ├── ColorAdd.hx
│ ├── ColorKey.hx
│ ├── SpecularTexture.hx
│ ├── VertexColor.hx
│ ├── VertexColorAlpha.hx
│ ├── Bloom.hx
│ ├── UVScroll.hx
│ ├── UVDelta.hx
│ ├── Displacement.hx
│ ├── FixedColor.hx
│ ├── Outline.hx
│ ├── KillAlpha.hx
│ ├── Checker.hx
│ ├── ColorMatrix.hx
│ ├── SkinBase.hx
│ ├── ZCut.hx
│ ├── ScreenShader.hx
│ ├── SinusDeform.hx
│ ├── CubeMap.hx
│ ├── Blendshape.hx
│ ├── MinMaxShader.hx
│ ├── DistanceFade.hx
│ ├── Shadow.hx
│ ├── AlphaMap.hx
│ ├── Texture2.hx
│ ├── Texture.hx
│ ├── AmbientLight.hx
│ ├── UVAnim.hx
│ ├── Outline2D.hx
│ ├── CheckerboardDepth.hx
│ ├── AlphaMSDF.hx
│ ├── DirLight.hx
│ ├── NormalMap.hx
│ ├── VolumeDecal.hx
│ ├── SignedDistanceField.hx
│ ├── Buffers.hx
│ ├── PointLight.hx
│ ├── ParticleShader.hx
│ ├── LineShader.hx
│ └── SkinTangent.hx
├── prim
│ ├── UV.hx
│ ├── Grid.hx
│ ├── Plane2D.hx
│ ├── RawPrimitive.hx
│ ├── GeoSphere.hx
│ └── Disc.hx
├── pass
│ ├── PassObject.hx
│ ├── OutputShader.hx
│ ├── ScalableAO.hx
│ ├── SortByMaterial.hx
│ ├── DefaultShadowMap.hx
│ ├── Outline.hx
│ ├── Border.hx
│ └── CubeCopy.hx
├── GPUCounter.hx
├── impl
│ ├── RendererFX.hx
│ ├── MacroHelper.hx
│ └── NullDriver.hx
├── Indexes.hx
└── anim
│ └── SimpleBlend.hx
├── hxd
├── res
│ ├── NotFound.hx
│ ├── defaultFont.png
│ ├── EmbedOptions.hx
│ ├── Prefab.hx
│ ├── AnimGraph.hx
│ ├── Model.hx
│ ├── DefaultFont.hx
│ ├── Font.hx
│ ├── Resource.hx
│ ├── Loader.hx
│ └── Any.hx
├── impl
│ ├── UInt16.hx
│ ├── Float32.hx
│ ├── ArrayIterator.hx
│ ├── TypedArray.hx
│ ├── AnyProps.hx
│ ├── BitSet.hx
│ ├── UncheckedBytes.hx
│ ├── AllocPos.hx
│ └── AppContext.hx
├── clipper
│ ├── PolyType.hx
│ ├── JoinType.hx
│ ├── ClipType.hx
│ ├── PolyFillType.hx
│ ├── EndType.hx
│ └── Rect.hx
├── Stage.hx
├── poly2tri
│ ├── EdgeEvent.hx
│ ├── Basin.hx
│ ├── Constants.hx
│ ├── Orientation.hx
│ ├── Edge.hx
│ ├── Node.hx
│ ├── Point.hx
│ └── VisiblePolygon.hx
├── snd
│ ├── effect
│ │ ├── Pitch.hx
│ │ ├── LowPass.hx
│ │ ├── Spatialization.hx
│ │ └── Reverb.hx
│ ├── ChannelGroup.hx
│ ├── SoundGroup.hx
│ ├── openal
│ │ ├── PitchDriver.hx
│ │ ├── LowPassDriver.hx
│ │ ├── AudioTypes.hx
│ │ └── SpatializationDriver.hx
│ ├── webaudio
│ │ ├── PitchDriver.hx
│ │ ├── LowPassDriver.hx
│ │ └── SpatializationDriver.hx
│ ├── Listener.hx
│ ├── LoadingData.hx
│ ├── WavData.hx
│ └── Effect.hx
├── fs
│ ├── NotFound.hx
│ ├── FileSystem.hx
│ ├── Exclusive.hx
│ ├── LoadedBitmap.hx
│ └── SourceLoader.hx
├── ByteConversions.hx
├── PixelFormat.hx
├── fmt
│ ├── pak
│ │ ├── Data.hx
│ │ └── Reader.hx
│ ├── grd
│ │ └── Data.hx
│ ├── kframes
│ │ └── Data.hx
│ ├── bfnt
│ │ └── Reader.hx
│ └── fbx
│ │ └── Filter.hx
├── tools
│ └── Mikktspace.hx
├── BytesBuffer.hx
├── FloatBufferLoader.hx
├── net
│ └── BinaryLoader.hx
├── WaitEvent.hx
├── Res.hx
├── Event.hx
├── IndexBuffer.hx
├── Direction.hx
└── DropFileEvent.hx
├── samples
├── all.hxml
├── gen.hxml
├── pbr_res
│ ├── top.jpg
│ ├── back.jpg
│ ├── bottom.jpg
│ ├── front.jpg
│ ├── left.jpg
│ └── right.jpg
├── res
│ ├── hxlogo.png
│ ├── customFont.png
│ └── normalmap.png
├── fxView_res
│ └── ray.jpg
├── world_res
│ ├── rock.hmd
│ ├── tree.hmd
│ ├── rockTexture.jpg
│ └── treeTexture.png
├── skin_res
│ ├── Sword01.png
│ └── Skeleton01.png
├── text_res
│ ├── littera.png
│ ├── sdf_font.png
│ ├── gravityFont.png
│ ├── trueTypeFont.ttf
│ ├── bmfont_binary.fnt
│ └── bmfont_binary_0.png
├── tiled_res
│ ├── tiles.png
│ └── tileMap.tmx
├── sound_res
│ ├── sound_fx.wav
│ ├── music_loop.mp3
│ └── music_loop.ogg
├── particles2d_res
│ └── arrow.png
├── templates
│ ├── __name_js.hxml
│ ├── __name_hl.hxml
│ ├── index.html
│ └── .vscode
│ │ ├── tasks.json
│ │ └── launch.json
├── Fullscreen.hx
├── ExtraTests.hx
├── domkit_res
│ └── style.css
├── Video.hx
├── Skin.hx
├── FxView.hx
├── AdjustColor.hx
├── Input.hx
└── Tiled.hx
├── tools
├── hxsl
│ ├── hxsl.hxml
│ └── hxsl.hxproj
└── meshTools
│ ├── meshtools.hxml
│ ├── build_msvc.bat
│ └── Makefile
├── hxsl
├── ChannelTexture.hx
├── Channel.hx
├── Output.hx
├── BatchShader.hx
├── Types.hx
└── Debug.hx
├── h2d
├── Sprite.hx
├── domkit
│ ├── Object.hx
│ └── InitComponents.hx
├── filter
│ ├── Nothing.hx
│ ├── ToneMapping.hx
│ ├── Bloom.hx
│ ├── ColorMatrix.hx
│ ├── Ambient.hx
│ └── Blur.hx
├── col
│ ├── Collider.hx
│ └── PolygonCollider.hx
├── BlendMode.hx
└── LoadingScene.hx
├── .gitignore
├── haxelib.json
├── .travis.yml
├── all.hxml
├── .github
└── workflows
│ ├── sync_wiki.yml
│ └── main.yml
└── LICENSE
/h3d/col/Point.hx:
--------------------------------------------------------------------------------
1 | package h3d.col;
2 |
3 | typedef Point = h3d.Vector;
--------------------------------------------------------------------------------
/h3d/mat/BlendMode.hx:
--------------------------------------------------------------------------------
1 | package h3d.mat;
2 |
3 | typedef BlendMode = h2d.BlendMode;
--------------------------------------------------------------------------------
/hxd/res/NotFound.hx:
--------------------------------------------------------------------------------
1 | package hxd.res;
2 |
3 | typedef NotFound = hxd.fs.NotFound;
--------------------------------------------------------------------------------
/samples/all.hxml:
--------------------------------------------------------------------------------
1 | -D silent
2 | gen.hxml
3 | --next
4 | --macro Generator.compile()
--------------------------------------------------------------------------------
/samples/gen.hxml:
--------------------------------------------------------------------------------
1 | -lib hscript
2 | -dce no
3 | --macro Generator.generateProjects()
--------------------------------------------------------------------------------
/h3d/parts/default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/h3d/parts/default.png
--------------------------------------------------------------------------------
/hxd/impl/UInt16.hx:
--------------------------------------------------------------------------------
1 | package hxd.impl;
2 |
3 | typedef UInt16 = #if hl hl.UI16 #else Int #end;
--------------------------------------------------------------------------------
/hxd/impl/Float32.hx:
--------------------------------------------------------------------------------
1 | package hxd.impl;
2 |
3 | typedef Float32 = #if hl hl.F32 #else Float #end;
--------------------------------------------------------------------------------
/hxd/res/defaultFont.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/hxd/res/defaultFont.png
--------------------------------------------------------------------------------
/samples/pbr_res/top.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/pbr_res/top.jpg
--------------------------------------------------------------------------------
/samples/res/hxlogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/res/hxlogo.png
--------------------------------------------------------------------------------
/h3d/parts/defaultAlpha.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/h3d/parts/defaultAlpha.png
--------------------------------------------------------------------------------
/samples/fxView_res/ray.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/fxView_res/ray.jpg
--------------------------------------------------------------------------------
/samples/pbr_res/back.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/pbr_res/back.jpg
--------------------------------------------------------------------------------
/samples/pbr_res/bottom.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/pbr_res/bottom.jpg
--------------------------------------------------------------------------------
/samples/pbr_res/front.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/pbr_res/front.jpg
--------------------------------------------------------------------------------
/samples/pbr_res/left.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/pbr_res/left.jpg
--------------------------------------------------------------------------------
/samples/pbr_res/right.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/pbr_res/right.jpg
--------------------------------------------------------------------------------
/samples/res/customFont.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/res/customFont.png
--------------------------------------------------------------------------------
/samples/res/normalmap.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/res/normalmap.png
--------------------------------------------------------------------------------
/samples/world_res/rock.hmd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/world_res/rock.hmd
--------------------------------------------------------------------------------
/samples/world_res/tree.hmd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/world_res/tree.hmd
--------------------------------------------------------------------------------
/tools/hxsl/hxsl.hxml:
--------------------------------------------------------------------------------
1 | -lib heaps
2 | -lib hscript
3 | -js hxsl.js
4 | -main Main
5 | -D hscriptPos
6 |
--------------------------------------------------------------------------------
/tools/meshTools/meshtools.hxml:
--------------------------------------------------------------------------------
1 | -hl out/main.c
2 | -lib heaps
3 | -main MeshTools
4 | -D hl-ver=1.15.0
--------------------------------------------------------------------------------
/h3d/scene/pbr/envDefault.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/h3d/scene/pbr/envDefault.dds
--------------------------------------------------------------------------------
/samples/skin_res/Sword01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/skin_res/Sword01.png
--------------------------------------------------------------------------------
/samples/text_res/littera.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/text_res/littera.png
--------------------------------------------------------------------------------
/samples/tiled_res/tiles.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/tiled_res/tiles.png
--------------------------------------------------------------------------------
/hxd/clipper/PolyType.hx:
--------------------------------------------------------------------------------
1 | package hxd.clipper;
2 |
3 | enum PolyType {
4 | Subject;
5 | Clip;
6 | }
7 |
--------------------------------------------------------------------------------
/samples/skin_res/Skeleton01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/skin_res/Skeleton01.png
--------------------------------------------------------------------------------
/samples/sound_res/sound_fx.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/sound_res/sound_fx.wav
--------------------------------------------------------------------------------
/samples/text_res/sdf_font.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/text_res/sdf_font.png
--------------------------------------------------------------------------------
/h3d/scene/pbr/envDefault.envd.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/h3d/scene/pbr/envDefault.envd.dds
--------------------------------------------------------------------------------
/h3d/scene/pbr/envDefault.envs.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/h3d/scene/pbr/envDefault.envs.dds
--------------------------------------------------------------------------------
/samples/particles2d_res/arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/particles2d_res/arrow.png
--------------------------------------------------------------------------------
/samples/sound_res/music_loop.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/sound_res/music_loop.mp3
--------------------------------------------------------------------------------
/samples/sound_res/music_loop.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/sound_res/music_loop.ogg
--------------------------------------------------------------------------------
/samples/text_res/gravityFont.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/text_res/gravityFont.png
--------------------------------------------------------------------------------
/samples/text_res/trueTypeFont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/text_res/trueTypeFont.ttf
--------------------------------------------------------------------------------
/samples/world_res/rockTexture.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/world_res/rockTexture.jpg
--------------------------------------------------------------------------------
/samples/world_res/treeTexture.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/world_res/treeTexture.png
--------------------------------------------------------------------------------
/hxd/clipper/JoinType.hx:
--------------------------------------------------------------------------------
1 | package hxd.clipper;
2 |
3 | enum JoinType {
4 | Square;
5 | Round;
6 | Miter;
7 | }
8 |
--------------------------------------------------------------------------------
/samples/text_res/bmfont_binary.fnt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/text_res/bmfont_binary.fnt
--------------------------------------------------------------------------------
/samples/text_res/bmfont_binary_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/samples/text_res/bmfont_binary_0.png
--------------------------------------------------------------------------------
/h3d/IDrawable.hx:
--------------------------------------------------------------------------------
1 | package h3d;
2 |
3 | interface IDrawable {
4 | public function render( engine : Engine ) : Void;
5 | }
--------------------------------------------------------------------------------
/hxd/Stage.hx:
--------------------------------------------------------------------------------
1 | package hxd;
2 |
3 | @:deprecated("hxd.Stage is now hxd.Window")
4 | @:noCompletion
5 | typedef Stage = Window;
--------------------------------------------------------------------------------
/samples/templates/__name_js.hxml:
--------------------------------------------------------------------------------
1 | -lib heaps
2 | -js ::name::.js
3 | -main ::main::
4 | -cp ../..
5 | -cp .
6 | -debug
7 | ::params::
8 |
--------------------------------------------------------------------------------
/hxd/res/EmbedOptions.hx:
--------------------------------------------------------------------------------
1 | package hxd.res;
2 |
3 | typedef EmbedOptions = {
4 | ?configuration : String,
5 | ?fontsChars : String,
6 | }
--------------------------------------------------------------------------------
/hxsl/ChannelTexture.hx:
--------------------------------------------------------------------------------
1 | package hxsl;
2 |
3 | typedef ChannelTexture = { texture : hxsl.Types.TextureChannel, channel : hxsl.Channel };
4 |
--------------------------------------------------------------------------------
/h3d/scene/pbr/lighting_performance_gradient.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deepnight/heaps/HEAD/h3d/scene/pbr/lighting_performance_gradient.png
--------------------------------------------------------------------------------
/hxd/clipper/ClipType.hx:
--------------------------------------------------------------------------------
1 | package hxd.clipper;
2 |
3 | enum ClipType {
4 | Intersection;
5 | Union;
6 | Difference;
7 | Xor;
8 | }
9 |
--------------------------------------------------------------------------------
/hxd/clipper/PolyFillType.hx:
--------------------------------------------------------------------------------
1 | package hxd.clipper;
2 |
3 | enum PolyFillType {
4 | EvenOdd;
5 | NonZero;
6 | Positive;
7 | Negative;
8 | }
9 |
--------------------------------------------------------------------------------
/hxd/res/Prefab.hx:
--------------------------------------------------------------------------------
1 | package hxd.res;
2 |
3 | #if hide
4 | typedef Prefab = hrt.prefab.Resource;
5 | #else
6 | typedef Prefab = hxd.res.Resource;
7 | #end
8 |
--------------------------------------------------------------------------------
/hxd/res/AnimGraph.hx:
--------------------------------------------------------------------------------
1 | package hxd.res;
2 |
3 | #if hide
4 | typedef AnimGraph = hrt.animgraph.Resource;
5 | #else
6 | typedef AnimGraph = hxd.res.Resource;
7 | #end
8 |
--------------------------------------------------------------------------------
/samples/templates/__name_hl.hxml:
--------------------------------------------------------------------------------
1 | -lib heaps
2 | -lib hlsdl
3 | -hl ::name::.hl
4 | -main ::main::
5 | -D windowSize=1024x768
6 | -cp ../..
7 | -cp .
8 | ::params::
9 |
--------------------------------------------------------------------------------
/h3d/parts/Collider.hx:
--------------------------------------------------------------------------------
1 | package h3d.parts;
2 |
3 | interface Collider {
4 |
5 | public function collidePart( p : Particle, normal : h3d.Vector ) : Bool;
6 |
7 | }
--------------------------------------------------------------------------------
/hxsl/Channel.hx:
--------------------------------------------------------------------------------
1 | package hxsl;
2 |
3 | enum Channel {
4 | Unknown;
5 | R;
6 | G;
7 | B;
8 | A;
9 | PackedFloat;
10 | PackedNormal;
11 | }
12 |
--------------------------------------------------------------------------------
/hxd/clipper/EndType.hx:
--------------------------------------------------------------------------------
1 | package hxd.clipper;
2 |
3 | enum EndType {
4 | ClosedPol;
5 | ClosedLine;
6 | OpenButt;
7 | OpenSquare;
8 | OpenRound;
9 | }
10 |
--------------------------------------------------------------------------------
/h2d/Sprite.hx:
--------------------------------------------------------------------------------
1 | package h2d;
2 |
3 | #if !heaps_sprite
4 | @:deprecated("h2d.Sprite is now h2d.Object, rename or use -D heaps-sprite")
5 | @:noCompletion
6 | @:dox(hide)
7 | #end
8 | typedef Sprite = Object;
--------------------------------------------------------------------------------
/h2d/domkit/Object.hx:
--------------------------------------------------------------------------------
1 | package h2d.domkit;
2 | import h2d.domkit.BaseComponents;
3 |
4 | @:build(h2d.domkit.InitComponents.init())
5 | @:autoBuild(h2d.domkit.InitComponents.build())
6 | interface Object {
7 | }
--------------------------------------------------------------------------------
/hxd/poly2tri/EdgeEvent.hx:
--------------------------------------------------------------------------------
1 | package hxd.poly2tri;
2 |
3 | class EdgeEvent
4 | {
5 | public var constrained_edge:Edge;
6 | public var right:Bool;
7 |
8 | public function new()
9 | {
10 |
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/hxd/snd/effect/Pitch.hx:
--------------------------------------------------------------------------------
1 | package hxd.snd.effect;
2 |
3 | class Pitch extends hxd.snd.Effect {
4 | public var value : Float;
5 |
6 | public function new(value = 1.0) {
7 | super("pitch");
8 | this.value = value;
9 | }
10 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.n
2 | *.swf
3 | *.js
4 | *.js.map
5 | *.obj
6 | bin
7 | .tmp
8 | /hxd/net/inspect.min.css
9 | /hxd/inspect/inspect.min.css
10 | /samples/build
11 | /*.xml
12 | .vscode
13 | /tools/meshtools/out
14 | *.exe
15 | /shaders
--------------------------------------------------------------------------------
/hxd/snd/effect/LowPass.hx:
--------------------------------------------------------------------------------
1 | package hxd.snd.effect;
2 |
3 | class LowPass extends hxd.snd.Effect {
4 | public var gainHF : Float;
5 |
6 | public function new() {
7 | super("lowpass");
8 | priority = 100;
9 | gainHF = 1.0;
10 | }
11 | }
--------------------------------------------------------------------------------
/h3d/shader/pbr/AlphaMultiply.hx:
--------------------------------------------------------------------------------
1 | package h3d.shader.pbr;
2 |
3 | class AlphaMultiply extends hxsl.Shader {
4 | static var SRC = {
5 | var pixelColor : Vec4;
6 | function fragment() {
7 | pixelColor.rgb *= pixelColor.a;
8 | }
9 | }
10 | }
--------------------------------------------------------------------------------
/hxd/snd/ChannelGroup.hx:
--------------------------------------------------------------------------------
1 | package hxd.snd;
2 |
3 | class ChannelGroup extends ChannelBase {
4 |
5 | public var name (default, null) : String;
6 |
7 | public function new(name : String) {
8 | super();
9 | this.name = name;
10 | }
11 |
12 | }
--------------------------------------------------------------------------------
/hxd/fs/NotFound.hx:
--------------------------------------------------------------------------------
1 | package hxd.fs;
2 |
3 | class NotFound {
4 | public var path : String;
5 | public function new(path) {
6 | this.path = path;
7 | }
8 | @:keep function toString() {
9 | return "Resource file not found '" + path + "'";
10 | }
11 | }
--------------------------------------------------------------------------------
/h3d/shader/WhiteAlpha.hx:
--------------------------------------------------------------------------------
1 | package h3d.shader;
2 |
3 | class WhiteAlpha extends hxsl.Shader {
4 |
5 | static var SRC = {
6 |
7 | var textureColor : Vec4;
8 |
9 | function fragment() {
10 | textureColor.rgb = vec3(1.0);
11 | }
12 |
13 | };
14 |
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/h3d/shader/AlphaMult.hx:
--------------------------------------------------------------------------------
1 | package h3d.shader;
2 |
3 | class AlphaMult extends hxsl.Shader {
4 | static var SRC = {
5 | @perInstance @range(0, 1) @param var alpha : Float;
6 | var pixelColor : Vec4;
7 |
8 | function fragment() {
9 | pixelColor.a *= alpha;
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/haxelib.json:
--------------------------------------------------------------------------------
1 | {
2 | "name" : "heaps",
3 | "url" : "http://heaps.io",
4 | "license" : "BSD",
5 | "description" : "The GPU Game Framework",
6 | "version" : "2.1.0",
7 | "releasenote" : "See CHANGELOG.md",
8 | "contributors" : ["ncannasse"],
9 | "dependencies" : { "format" : "" }
10 | }
--------------------------------------------------------------------------------
/tools/meshTools/build_msvc.bat:
--------------------------------------------------------------------------------
1 | haxe meshtools.hxml -D no-compilation
2 | call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
3 | cl /Ox /Femeshtools.exe -I %HASHLINK_SRC%/src -I out out/main.c %HASHLINK_SRC%/x64/Release/libhl.lib %HASHLINK_SRC%/x64/Release/heaps.lib
4 |
--------------------------------------------------------------------------------
/samples/templates/index.html:
--------------------------------------------------------------------------------
1 |
2 |
::name::
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/h3d/shader/FlipBackFaceNormal.hx:
--------------------------------------------------------------------------------
1 | package h3d.shader;
2 |
3 | class FlipBackFaceNormal extends hxsl.Shader {
4 |
5 | static var SRC = {
6 |
7 | var transformedNormal : Vec3;
8 |
9 | function __init__fragment() {
10 | if ( !frontFacing )
11 | transformedNormal *= -1.0;
12 | }
13 | };
14 | }
--------------------------------------------------------------------------------
/hxd/clipper/Rect.hx:
--------------------------------------------------------------------------------
1 | package hxd.clipper;
2 |
3 | class Rect {
4 | public var left : Int;
5 | public var top : Int;
6 | public var right : Int;
7 | public var bottom : Int;
8 |
9 | public function new(l=0,t=0,r=0,b=0) {
10 | this.left = l; this.top = t;
11 | this.right = r; this.bottom = b;
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/hxd/res/Model.hx:
--------------------------------------------------------------------------------
1 | package hxd.res;
2 |
3 | class Model extends Resource {
4 |
5 | public function toHmd() : hxd.fmt.hmd.Library {
6 | var fs = entry.open();
7 | var hmd = new hxd.fmt.hmd.Reader(fs).readHeader(#if editor true #end);
8 | fs.close();
9 | return new hxd.fmt.hmd.Library(this, hmd);
10 | }
11 |
12 | }
--------------------------------------------------------------------------------
/h3d/shader/AlphaChannel.hx:
--------------------------------------------------------------------------------
1 | package h3d.shader;
2 |
3 | class AlphaChannel extends hxsl.Shader {
4 |
5 | static var SRC = {
6 | var pixelColor : Vec4;
7 | @const var showAlpha : Bool;
8 | function fragment() {
9 | if( showAlpha ) pixelColor.rgb = pixelColor.aaa;
10 | pixelColor.a = 1.;
11 | }
12 | }
13 |
14 | }
--------------------------------------------------------------------------------
/h2d/filter/Nothing.hx:
--------------------------------------------------------------------------------
1 | package h2d.filter;
2 |
3 | /**
4 | A filter that renders nothing.
5 | **/
6 | class Nothing extends Filter {
7 |
8 | /**
9 | Create a new Nothing filter.
10 | **/
11 | public function new() {
12 | super();
13 | }
14 |
15 | override function draw( ctx : RenderContext, t : h2d.Tile ) {
16 | return t;
17 | }
18 |
19 | }
--------------------------------------------------------------------------------
/hxsl/Output.hx:
--------------------------------------------------------------------------------
1 | package hxsl;
2 |
3 | enum Output {
4 | Const( v : Float);
5 | Value( v : String, ?size : Int );
6 | PackNormal( v : Output );
7 | PackFloat( v : Output );
8 | Vec2( a : Array