Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aalineRGBA? #73

Open
mpeters2 opened this issue Dec 23, 2023 · 1 comment
Open

aalineRGBA? #73

mpeters2 opened this issue Dec 23, 2023 · 1 comment

Comments

@mpeters2
Copy link
Contributor

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.

@Kyjor
Copy link
Contributor

Kyjor commented Jan 26, 2024

#75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants