Is it necessary to create couple program OpenGL? [closed] - c++

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I'm learning OpenGL and want to create simple program. I want to render different meshes with different shaders. Should I recreate program or I must reuse created program? (program - shader program, created by calling glCreateProgram)

You don't have to re-use the linked program(s), it's just usually much faster than re-compiling/linking them each frame/drawcall.

Related

Drawing graphics without any library in C/C++ [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Basically is there any way to render a pixel using C/C++ without using any external library. All mingw or gcc headers may be used.
You cannot render images to the screen without external libraries, unless you do hardcore system programming (see for instance this answer fore more information). But you can easily render images that you can save as PNG/JPEG/TIF files, which is what I believe this library is doing.

Hide resource files in game making [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I notice that in many game folders, I cannot find the resource files (sounds, game scripts, textures...). Is that because I don't see it or the programmers have hidden them somewhere?
I'm learning to make my first game in SDL2.
They will often be compressed into .cab or other kinds of archival formats to decrease required space and provide tamper protection.

I want to make a C++ program that moves files [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am a fairly new C++ programmer and I am trying to set up a program that moves 2 files into a different location. How do I do this?
Under Windows, there is an API just for that purpose, the MoveFileEx() function.
To use it, start with:
#include <windows.h>
And then you can simply do something like this:
BOOL result = MoveFileEx("C:\\dir\\myfile.txt", "D:\\another\\directory\\output.txt", MOVEFILE_COPY_ALLOWED);

Access linux's terminal per pixel [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I'm trying to write text-based gui. Is there a way to access terminal per pixel using pure C++? I read a one method, but it was SDL based ;[
Not sure what you imply by "Pure C++", but ncurses is the go-to library for CLI applications (and there is a port for Windows called pdcurses )

How to make a MATLAB function to be run in html? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I've developed a MATLAB code that I think it is useful to be used by researchers. How can I embed it in a website to be used free?
It gets two integers and return a set of integers
Also it is possible to convert it to c++, If it helps.
Thanks
Submit your m-file(s) to Matlab Central File Exchange, this is the perfect place for it.