Giter Club home page Giter Club logo

csfml.jl's People

Contributors

gnimuc avatar juliatagbot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

csfml.jl's Issues

TagBot trigger issue

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!

MethodError: no method matching sfEvent(::sfEventType)

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.

setting ContextSettings?

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?

Cannot access all event attributes via sfRenderWindow_pollEvent

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.