How to use openGL in VS2005, it is good to have an example

Updated on technology 2024-02-09
14 answers
  1. Anonymous users2024-02-05

    About OpenGL

    at the end of the add.

    #include "gl/"

    #include "gl/"

    #include "gl/"

    #pragma comment(lib,"")#pragma comment(lib,"")#pragma comment(lib,"")#pragma comment(lib,""You can use the opengl library.

    Of course, make sure you have these libraries first, and if you don't have them, you can search them online.

    What are the three folders used for after creating a new project, I wonder if you don't have any VC foundation? Then you'll have to take a look at VC.,Any book will talk about it.。。。

    VC recommends you to watch Sun Xin's "In-depth Explanation of VC++".

    The application of OpenGL in VC You can see the OpenGL Advanced Programming and Visualization System Development.

    Advanced.

  2. Anonymous users2024-02-04

    Goo (b,You write opengl at least with a winmain,How can you use cmd?。。。

  3. Anonymous users2024-02-03

    glut should contain the loading lib library, and include it in front of it.

    The lib of glut should also be put in the lib path, if it doesn't work, put it in a folder of the source file.

  4. Anonymous users2024-02-02

    There is no library function connected to OpenGL, so you need to add the OpenGL lib file to the VS2005 project.

  5. Anonymous users2024-02-01

    I think I should use a winmain...

    Then there is the header file and library file to be added to the system, just like the Jiangnan comrade said, I won't say more.

    There's also,Project-Properties-Configuration Properties-Connectors-Input-Additional Dependencies,Here,Stick these in:,Other properties also need to be changed.,What system?,Preprocessor,Use winmain to change.,Use main to write opengl.,I haven't tried it.,It's not clear.

    It should work if you change it.

  6. Anonymous users2024-01-31

    , put it into the platformsdk lib, put it into the platformsdk include gl, put it in.

    To you in the line below, pragma comment(linker,"/subsystem:\"windows\" \

    entry:\"maincrtstartup\""It seems to be in window"There's a non-unicode character (it's a space) after it, and you write this line directly as:

    #pragma comment(linker, "/subsystem:\"windows\" /entry:\"maincrtstartup\""), note that the entry is deleted

    Generate and run, I'll copy your ** directly, and get a background color transparent, dot matrix diagram.

    In addition, include can be omitted.

    good luck!

  7. Anonymous users2024-01-30

    This seems to be a problem with characters.,You use vc6 to debug it.,Install a green version on ten m.,If you don't report an error, it's definitely a character problem.。

    The characters are changed to wide characters in the configuration.

  8. Anonymous users2024-01-29

    Well, look at this. Very good tutorial, showing **, should be in texture mapping.

  9. Anonymous users2024-01-28

    Do you want to learn OpenGL programming, or use OpenGL in other rendering software?

  10. Anonymous users2024-01-27

    Enter My Space There is information on this.

  11. Anonymous users2024-01-26

    You can find the C sample on MSDN.

    en-us,

  12. Anonymous users2024-01-25

    Let's take a look at the window net, which has a very detailed introduction.

  13. Anonymous users2024-01-24

    Halo,It's an exaggeration on the 1st floor,**Found so many copies of things,It must be corrected that OpenGL is better than Direct in terms of image quality,This "picture quality" does not refer to sensory effects,It refers to the degree of image restoration does not refer to special effects,Due to Microsoft's efforts,DX has greatly surpassed OpenGL in special effects,But the subtleties of image monetization are still worse than OpenGL,So the godfather of FPS company ID Software (mainly the classic Quake series and DOOM series) will insist on using OpenGL as the company's game development API, and AutoCAD and 3DMAX have always used OpenGL as the development and design API for this reason, OpenGL can get more "realistic" effects, rather than eye-catching complex and dazzling special effects. This is very important in industrial design and architectural design. So in summary, DX is a more pleasing API for ordinary users, and OpenGL is a more realistic API for professional users.

    In fact, the well-known OpenGL is the strength of the NVIDIA graphics card, since the ancient Quake 3, NVIDIA's graphics card has been maintaining the advantage of speed in the field of OpenGL games, in addition, according to the previous instructions, it is estimated that Warcraft 3 also uses a large number of OpenGL interface languages in the development process, so it is of course much faster after converting to the OpenGL mode of NVIDIA's strength, of course, it is also based on the above analysis, Due to the different ways of expression of the picture, there must be a certain difference between the picture sense and the DX mode, not necessarily the picture quality is reduced.

    And because not all games support both DX and OpenGL APIs, it has a certain relationship with the APIs used in the development process, and the -OpenGL parameter with debugging significance is also specific, so -OpenGL cannot be applied to other games, and in the same way, the -w parameter of the original Diablo 2 window mode is also not applicable to other games.

  14. Anonymous users2024-01-23

    The performance is not as good as OpenGL.

    However, the image quality of OpenGL is rough and the smoothness is distorted.

    If you use OpenGL mode, the graphics will feel quite weird, so don't use it now.

Related questions
8 answers2024-02-09

That's not right! The 2002 enhanced version of our unit has been used for 4 years and upgraded for 4 years, and now there is no problem at all! It can be upgraded normally.

2 answers2024-02-09

s d w x c q a spaces can be manipulated.

Press the spacebar and arrow keys to step down the dribble. >>>More

3 answers2024-02-09

19: a tool returned an error code

You can find such a post: >>>More

6 answers2024-02-09

Generally, the express delivery is 1-3 days, first local pick-up - sent to the town - sent to the county - sent to the provincial capital. >>>More

6 answers2024-02-09

Brazil, Brazil's defensive quality is stronger than the teams the Netherlands have faced before, and Brazil's attacking power should be able to knock on the door of the Dutch team