juliamultimedia / csfml.jl Goto Github PK
View Code? Open in Web Editor NEWJulia bindings for CSFML
License: zlib License
Julia bindings for CSFML
License: zlib License
This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml
to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix
on this issue.
I'll open a PR within a few hours, please be patient!
Hello,
The Quick start example does not work for me. The problem line is:
event_ref = Ref(sfEvent(sfEvtClosed))
And the error is:
ERROR: LoadError: MethodError: no method matching sfEvent(::sfEventType)
Closest candidates are:
sfEvent(::sfEventType, ::NTuple{20,UInt8}) at /home/james/.julia/packages/CSFML/KI9Y5/src/Window/window_common.jl:273
sfEvent(::Any, ::Any) at /home/james/.julia/packages/CSFML/KI9Y5/src/Window/window_common.jl:273
Stacktrace:
[1] top-level scope at /home/james/Julia_projs/tutorials/tutorial_main.jl:29
in expression starting at /home/james/Julia_projs/tutorials/tutorial_main.jl:29
I'm running Ubuntu 18.04. Thank you in advance!
EDIT: The example in examples folder does work, I think the "Quick start" example in the README is just out of date. I'd suggest either updating or removing the latter, so that others don't get confused in the future.
Hello,
i found that it was missing the structure "sfMouseWheelEvent" in the "window_common.jl" file.
I would like to set antialiasing in my window. I have tried:
mode = sfVideoMode(1280, 720, 32)
settings = sfContextSettings(0, 0, 3, 2, 2, 0, 0)
window = sfRenderWindow_create(mode, "SFML window", sfResize | sfClose, settings)
but this results in an error:
ERROR: MethodError: no method matching unsafe_convert(::Type{Ptr{sfContextSettings}}, ::sfContextSettings)
can anyone help?
sfRenderWindow_pollEvent
function works only with sfEvent
type. How can I access event attributes other than event type (like mouse position or pressed key code) when using this function? These attributes are declared in other types like e.g. sfMouseButtonEvent
and it looks to me that these are not accessible via sfRenderWindow_pollEvent
function.
If I understand correctly, in CSFML sfEvent
type should be union of more concrete event types like sfKeyEvent
.
TODO List:
It appears that there is no CSFML specific documentation. They simply refer to the SFML docs.
Probably the best link would be the CSFML git page
since it contains several links to sources of documentation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.