[NXC] Draw using flags

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
nxtboyiii
Posts: 366
Joined: 02 Oct 2010, 07:08
Location: Everywhere

[NXC] Draw using flags

Post by nxtboyiii »

Hi,

Is there a way to set a bunch of things to the screen and then draw them all at the same time with a function?
If not, can someone tell me how? I am doing this so things on the screen won't flicker.

Thanks, and have a nice day,
nxtboy III
Thanks, and have a nice day,
nxtboy III

programnxt.com
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: [NXC] Draw using flags

Post by mattallen37 »

That's basically what I asked for a while ago. What I want is a dual screen buffer, so you can write to one, and then display it while you are writing to the other one. You would keep switching so everything would display in sync.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: [NXC] Draw using flags

Post by muntoo »

Relevant post(s) here.
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
nxtboyiii
Posts: 366
Joined: 02 Oct 2010, 07:08
Location: Everywhere

Re: [NXC] Draw using flags

Post by nxtboyiii »

Yeah... I know.

But is there at least some way to stop screen flicker?
Thanks, and have a nice day,
nxtboy III

programnxt.com
spillerrec
Posts: 358
Joined: 01 Oct 2010, 06:37
Location: Denmark
Contact:

Re: [NXC] Draw using flags

Post by spillerrec »

Try to look at the SetDisplayFlags() function. It seemed to work fine for me, but it was just a quick test and my code didn't cause that much flicker anyway...
My blog: http://spillerrec.dk/category/lego/
RICcreator, an alternative to nxtRICeditV2: http://riccreator.sourceforge.net/
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 3 guests