Search found 5 matches

by Dither
Thu Jul 30, 2015 12:14 am
Forum: Feature Requests and Wishlists
Topic: Please improve module music support
Replies: 1
Views: 1878

Please improve module music support

Hi guys. I love PB and appreciate all the work you have put into it. Now a little bit of complaining, I'm sorry. :cry:

I would love to use XM files in a game but the existing commands give very imprecise or broken results.

For example, printing the result from GetMusicPosition will report a ...
by Dither
Fri Jul 17, 2015 6:01 pm
Forum: Coding Questions
Topic: Viewport?
Replies: 7
Views: 2192

Re: Viewport?

ClipOutput(x, y, Width, Height)

http://www.purebasic.com/documentation/2ddrawing/clipoutput.html

Thanks, Julian. That is good to know, but ClipOutput does not appear to work with sprites. Also, it gave a very strange and garbled result when I tried it with a loaded image on a screen (Mac ...
by Dither
Fri Jul 17, 2015 12:29 am
Forum: Coding Questions
Topic: Viewport?
Replies: 7
Views: 2192

Re: Viewport?

Comtois,

Thank you for the link! I will study your code example.

Best regards.
by Dither
Thu Jul 16, 2015 9:03 pm
Forum: Coding Questions
Topic: Viewport?
Replies: 7
Views: 2192

Re: Viewport?

Comtois wrote:use CreateCamera() to define a viewport
Thank you for your reply. I apologize for not clarifying this before: What I am talking about is for 2d graphics. If I understand it correctly, CreateCamera() works with 3d only?
by Dither
Thu Jul 16, 2015 4:47 pm
Forum: Coding Questions
Topic: Viewport?
Replies: 7
Views: 2192

Viewport?

Hi all,

Does Purebasic have an equivalent to the 'viewport' command in Blitz Basic? This command allows you to specify the location and dimensions (in pixels) of a rectangular area on the screen. After it is called, all rendering occurs inside this area without affecting the rest of the screen ...