Skip to content

aalineRGBA? #73

@mpeters2

Description

@mpeters2

Maybe I'm doing something wrong, but I get this:

UndefVarError: `aalineRGBA` not defined

using SimpleDirectMediaLayer
using SimpleDirectMediaLayer.LibSDL2
...
SDL_SetRenderDrawColor(myWin.renderer, 255,255,255,255)	
SDL_RenderDrawLine(myWin.renderer, 1500, 10, 1510, 1500 )
#------------
aalineRGBA(myWin.renderer, 
		convert(Int16, 1510), 
		convert(Int16, 10), 
		convert(Int16, 1520), 
		convert(Int16, 1500),
		convert(UInt8, 255),
		convert(UInt8, 255),
		convert(UInt8, 255),
		convert(UInt8, 255)
				)

I know that myWin.renderer is kosher, as I use it throughout my code. What I'm trying to do in the above code is to compare SDL_RenderDrawLine() to aalineRGBA()'s picture quality. If I comment-out the aalineRGBA() section, it works just fine. It is only the aalineRGBA() that gives me an error.

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