473,387 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

GLUT - how to optimise it

I am developing an WW2 radar display, C on a PI and on a MAC and UBUNTU. Glut does me a good job - portable and fairly efficient. BUT in my system the "background" of the display has various static circles and text - range circles and text for the distances.

This data does not change from frame to frame, but I end up drawing it every refresh. That takes time.

How can I (kind of)
generate the static background
save it to a buffer
then
merge that buffer/object/ to the output

Seems easy, but I cant find enough examples to help -
1 is the glBufferStorage a way to do this?
2 how do I size the buffer if it is

I really want to say
"write to buffer X"
draw what I want - circles and text - into that buffer
then
merge buffer X into the display

All clues welcome - or an alternative approach using GLUT
Apr 4 '22 #1
0 6714

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Fulko van Westrenen | last post by:
Hello, I'm very new to Python and rather unexperienced in OpenGL, and now I try to learn both at the same time. I can find my way around in Perl with Perl/Tk. What I try to do is combining Tk...
0
by: Fulko van Westrenen | last post by:
Hello, A few days ago I asked help with GLUT/Tk. This combination seems to be difficult. Is there another combination with GLUT, like GTK or Qt, or a true GLUT widget-set that I can use to make...
5
by: Steven Gutstein | last post by:
I've just managed to get PyOpenGL installed on a Windows NT machine. I've tried testing it using one of the programs supplied with the PyOpenGL download - molehill.py. On my machine, it was placed...
9
by: max(01)* | last post by:
hi there. i installed python2.3-opengl, then i tried one of those demos: ---- #!/usr/bin/python2.3 # This is statement is required by the build system to query build info if __name__ ==...
0
by: Bushido Hacks | last post by:
What's that? I've go GCC working for Windows? Well, sort of. But I'm not using a Unix Emulator. The trick is to install Dev-C++, but do not use the Dev-C++ IDE unless you feel like it. I...
1
by: Scott Chang | last post by:
Hi All I tried to use the attached OpenGL code to draw a Star-shaped figure on my Microsoft Visual C++ .NET 2002-Windows XP Pro PC. When I did 'Build' in Debug Mode, I got an error C2065:...
5
by: Michael Kipper | last post by:
Hi, I'm having a problem moving from C to C++. In C, I have a function: void display(void) {} that I can register with OpenGL as a callback using: GLUTAPI void glutDisplayFunc( void...
1
by: Advait | last post by:
Hello everyone, I am using GCC through DevC++ & Code Block Studio IDEs. I got libraries "gl" & "glu" with these IDEs. Programs based on these two libs gl & glu are executing well. I want...
2
by: Advait | last post by:
Hello everyone, I am using GCC through DevC++ & Code Block Studio IDEs. I got libraries "gl" & "glu" with these IDEs. Programs based on these two libs gl & glu are executing well. I want to...
0
by: shortyzms | last post by:
I have been trying to write a small glut program that uses popup context menus on right clicks to draw objects. However, every time I do this, the area underneath the submenu item I clicked does not...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.