hx-nanovg's Introduction
hx-nanovg's People
hx-nanovg's Issues
Problem compiling demo
Hi Michael!
Seems cool!
I can't compile the demo though. Tried with
haxelib run openfl test demo.test.xml windows
On Haxe 3.1.3, it's complaining about missing cpp.Char etc. and on Haxe 3.2 i get the following:
--macro:1: character 0 : Warning : subtype not found, can't keep: Demo.src
--macro:1: character 0 : Invalid package : Demo.src should be
Am I on the right track here..?
Jonas
NvgColor, NvgPaint, NvgGlyphPosition, NvgTextRow cant be used as class-members!
structs wrapped via hxcpp cant be used as fields/members of a class.
Defined as
@:include("nanovg.h")
@:native("NVGpaint")
extern class NvgPaint {
// ...
}
and used as
class Main {
var imgPattern:NvgPaint;
will result in the following cpp-code:
Dynamic Main_obj::__Field(const ::String &inName,bool inCallProp)
{
switch(inName.length) {
// ..
case 10:
if (HX_FIELD_EQ(inName,"imgPattern") ) { return imgPattern; }
break;
// ..
return super::__Field(inName,inCallProp);
}
will result in the following error
./src/Main.cpp(260) : error C2440: 'type cast' : cannot convert from 'NVGpaint' to 'int'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Update missed Ints to Float32
See the comments in a097286.
Demo not compiling on haxe 3.1.3 with hxcpp 3.1.39
I got the following error on the demo :
C:\HaxeToolkit\haxe\lib\hx-nanovg/git/hxnanovg/Nvg.hx:3: characters 7-15 : Class not found : cpp.Char
Does hx-nanovg require git version of haxe/hxcpp ?
Update demo for new Lime
I got the following error on the demo:
src/Demo.hx:6: characters 7-16 : Class not found : lime.Lime
I use actual dev-version hxcpp (from git) and nightly Haxe (2014-10-09T22:31:58)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.