Skip to content

Instantly share code, notes, and snippets.

HxScout - memory profiling
HxSpy - rename for HxCPPObjectGraphViewer
HxPyro - track mouse movement and generate heat maps for a given "screen" -- includes framework-agnostic hooks. (Could also repurpose the abstraction for Eye-tracking hardware)
HxDemoman - possible rename of Crashdumper
package;
import flash.text.TextFormat;
import openfl.Assets;
import openfl.display.Sprite;
import openfl.Lib;
import openfl.text.TextField;
import openfl.text.TextFieldAutoSize;
import openfl.text.TextFormatAlign;
@larsiusprime
larsiusprime / HaxeFlixel_backers.csv
Last active August 29, 2016 23:17
HaxeFlixel backer list
First Middle Last Credit as Appearance Amount Perk
Daniel Fedor Visible $1000 Platinum Sponsor
Gian Prescilla Visible $500 Gold Sponsor
Solar Powered Games Visible $500 Gold Sponsor
Etienne Bégué Visible $250 Silver Sponsor
David Capello Visible $250 Silver Sponsor
Luke Hutscal Anonymous $250 Silver Sponsor
Michael Lee Visible $250 Silver Sponsor
Axel Anceau Peekmo Visible $125 Super Funder + Mega Pack
George Kurelic Visible $125 Super Funder + Mega Pack
package;
#if macro
import haxe.macro.Expr;
#end
class Loader
{
#if cpp
public static function __init__()
@larsiusprime
larsiusprime / gist:2cff49cc973eba078a94b6c3358c7efb
Last active March 4, 2017 22:41
Help me diagnose a black screen error on linux/mac
I believe these settings should be enough to reproduce the error.
platform: linux
bits: 64
haxe version: latest dev version
hxcpp:
https://github.com/larsiusprime/hxcpp (master branch)
openfl:
@larsiusprime
larsiusprime / 00_ImageDataUtil.cpp
Last active March 22, 2017 20:36
Proposed speedup for ImageDataUtil.copyPixels()
void ImageDataUtil::CopyPixels (Image* image, Image* sourceImage, Rectangle* sourceRect, Vector2* destPoint, Image* alphaImage, Vector2* alphaPoint, bool mergeAlpha) {
uint8_t* sourceData = (uint8_t*)sourceImage->buffer->data->Data ();
uint8_t* destData = (uint8_t*)image->buffer->data->Data ();
ImageDataView sourceView = ImageDataView (sourceImage, sourceRect);
Rectangle destRect = Rectangle (destPoint->x, destPoint->y, sourceView.width, sourceView.height);
ImageDataView destView = ImageDataView (image, &destRect);
PixelFormat sourceFormat = sourceImage->buffer->format;

So say I have a function like this:

int doSomeStuff(
   const SomeStruct *myStruct
)

And SomeStruct is defined like this:

char* text = GetSomeTextInUTF8Format();
std::wstring* result = new std::wstring (text, text + strlen (text));

Addressed:

  • Established developers should be able to get app IDs more easily (Steam Direct)
  • Create a developer support ticket system (TomG claims this is addressed)
  • Allow selling “unlisted” apps on Steam with no public store page (TomG claims this is addressed)

Unaddressed:

  • Players should be able to “follow” developers on Steam
  • Add embeddable "add to Steam wishlist" buttons for the web
/**
sys_create_dir : string -> mode:int -> void
<doc>Create a directory with the specified rights</doc>
**/
bool _hx_std_sys_create_dir( String path, int mode )
{
printf("_hx_std_sys_create_dir()\n");
#ifdef EPPC
return true;
#else