Skip to content

Can not use SDL2_gfx primitives for renderering #68

@OmegaLambda1998

Description

@OmegaLambda1998

Minimum working example:

julia> using SimpleDirectMediaLayer

julia> using SimpleDirectMediaLayer.LibSDL2

julia> window = SDL_CreateWindow("test", 0, 0, 500, 500, SDL_WINDOW_SHOWN)
Ptr{SDL_Window} @0x00000000012c1230

julia> renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC)
Ptr{SDL_Renderer} @0x0000000001637bf0

julia> SimpleDirectMediaLayer.LibSDL2.rectangleRGBA(renderer, 10, 10, 50, 50, 255, 255, 255, 255)
ERROR: could not load symbol "rectangleRGBA":
/home/[redacted]/.julia/artifacts/8f20658b625a577cdc6b81980bbae941cb291139/lib/libSDL2.so: undefined symbol: rectangleRGBA
Stacktrace:
 [1] rectangleRGBA(renderer::Ptr{SDL_Renderer}, x1::Int64, y1::Int64, x2::Int64, y2::Int64, r::Int64, g::Int64, b::Int64, a::Int64)
   @ SimpleDirectMediaLayer.LibSDL2 ~/.julia/packages/SimpleDirectMediaLayer/wjMsP/src/LibSDL2.jl:6142
 [2] top-level scope
   @ REPL[5]:1

Not only does this not work, it also looks like the SDL2_gfx primitives are not exported. Strangely the SDL2_framerate objects (SDL_initFramerate, SDL_getFramerate, SDL_setFramerate, etc...) which are part of SDL2_gfx do exist!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions