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

Already on GitHub? Sign in to your account

SDL::GFX::Primitives documentation #95

Closed
kthakore opened this Issue Jul 26, 2011 · 3 comments

Comments

Projects
None yet
1 participant
Owner

kthakore commented Jul 26, 2011

Hello,

I am a bit confused about how to use string_color , I will explain why:

in gfx_primitives you can infer that it's first argument should be SDL::Video , but the first argument given to it is $display , the naming is a big counterintuitive.

I want to display some text only having SDL::App , however, apparently SDL::App is also a SDL::Surface(by looking at the @isa In SDL::App) , so I think I could pass it as parameter to string_color, I guess this should be mentioned in the documentation of SDL::GFX::Primitives.

In general, although Perl is not a strong-typed language, I think it is very helpful to specify what types can go in which arguments of what functions.

It would be very useful for someone wanting to write stuff with SDL to have this information available.

Thank you for your work so far :)

@ghost ghost assigned kthakore Jul 26, 2011

Owner

kthakore commented Jul 26, 2011

Author: FROGGS
Time: 1269220302
Field: status
Value: closed

Owner

kthakore commented Jul 26, 2011

Author: FROGGS
Time: 1269220302
Field: resolution
Value: fixed

Owner

kthakore commented Jul 26, 2011

Author: FROGGS
Time: 1269220302
Field: comment
Value: Docs describe now what the parameter does.

@kthakore kthakore closed this Jul 26, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment