Glaux lib как подключить в visual studio
Перейти к содержимому

Glaux lib как подключить в visual studio

  • автор:

Русские Блоги

Предисловие: учитель компьютерной графики все еще использует код более 10 лет назад, поиск в Интернете, обнаруживая, что большинство учебных пособий по конфигурации окружающей среды являются VS2010, 2012 и более ранние версии, поэтому я написал этот учебник, чтобы избежать бачелографии Отказ Этот учебник Visual Studio 2015 также может быть использован

Конфигурация установки в одном клике

VS2017 Эта версия имеет функцию Manager Package Nuget, значительно упрощает работу конфигурации среды OpenGL. Для некоторого кода вам нужно только открыть элемент в меню — управлять пакетом Nuget — просматривайте NUGPENGL после поиска NUPENGL, он может работать гладко Отказ

5363693-b6a83f7bf9a08bd3.png

Низкая версия VS совместима

Если код, отправленный учителем, является относительно низкой версией VS2010, VC6.0 и т. Д., Вам также необходимо пересмотреть решение в исследователе решение, выберите первую версию SDK, чтобы определить, затем восстановить проект, если VS По-прежнему сообщили об большом Bache, пожалуйста, продолжайте смотреть на руководство ниже.

5363693-9af20856e994c249.png

Другие исправления ошибок

Для некоторых более специальных кодов элементов, например, для использования GL GLAUX.H, может быть сообщено многим ошибкам. Есть несколько ниже:

1. Вариант командной строки «/ Zi» и «/ GY-» несовместимо

5363693-cf72ddf9c42ff5a7.png

Щелкните правой кнопкой мыши проект SELECT PROPERTICE — C / C ++ — Выберите информацию о отладке информации — База данных программирования (/ ZI)

5363693-d5da0e8f26f05787.png

2. Невозможно открыть исходный файл "gl \ glaux.h"

Ознакомьтесь с этим заголовочным файлом.

Если нет файла с открытым исходным кодом "glaux.lib",Загрузите этот сжатый пакетUnzip Glaux.lib внутри него добавьте этот файл в текущую версию пути lib, если вы не знаете этот путь, вы можете узнать из учебника поиска Baidu.

5363693-a09689f057644973.png

3. Внешние команды, которые не могут быть проанализированы

Вообще более видно в коде новых VS-проекта для запуска учителя, потому что проект не добавляет дополнительных зависимостей для линкера. Он может быть добавлен следующим образом: opengl32.lib; glu32.lib; glaux.lib; odbc32.lib; odbccp32.lib;

5363693-0f4b297be737c6a6.png

5363693-7f4bbc5299c84f18.png

4. Другие ошибки

Отсутствие OpenGL связано .h .dll .lib можетЗагрузите этот сжатый пакетПосмотрите, есть ли в нем что-нибудь, признание. Здесь вы должны выплавить загрузку баллов CSDN, и многие из ранее загруженных документов улучшили точки загрузки. Попробуйте учитель компьютерной графики, код не должен быть настолько хорошим в течение более десяти лет.

5363693-4346c9e777f5a3a8.png

PS: Если вы столкнулись с другими ошибками, пожалуйста, поделитесь в области комментариев, избегайте всех тратить слишком много времени энергии в среде конфигурации.

Интеллектуальная рекомендация

Реализация JavaScript Hashtable

причина Недавно я смотрю на «Структуру данных и алгоритм — JavaScript», затем перейдите в NPMJS.ORG для поиска, я хочу найти подходящую ссылку на библиотеку и записывать его, я могу исполь.

MySQL общие операции

jdbc Транзакция: транзакция, truncate SQL заявление Transaction 100 000 хранимая процедура mysql msyql> -определить новый терминатор,Пробелов нет mysql>delimiter // mysql> -создание хранимой .

Используйте Ansible для установки и развертывания TiDB

жизненный опыт TiDB — это распределенная база данных. Настраивать и устанавливать службы на нескольких узлах по отдельности довольно сложно. Чтобы упростить работу и облегчить управление, рекомендуетс.

Последняя версия в 2019 году: использование nvm под Windows для переключения между несколькими версиями Node.js.

С использованием различных интерфейсных сред вы можете переключаться между разными версиями в любое время для разработки. Например, развитие 2018 года основано наNode.js 7x версия разработана. Тебе эт.

Шаблон проектирования — Создать тип — Заводской шаблон

Заводская модель фабрикиPattern Решать проблему: Решен вопрос, какой интерфейс использовать принципСоздайте интерфейс объекта, класс фабрики которого реализуется его подклассом, чтобы процесс создания.

glaux.lib in Visual Studio 2008

I’m porting some code from Visual Studio 2005 to Visual Studio 2008.

Can i use the glaux.lib found in Visual Studio 2005 found in \PlatformSDK\Lib folder in Visual Studio 2008 ? I don’t want to change my APIs and have the requirement to use glaux.h

as said here , does this work

looks like glaux.lib is deprecated. Instead link to kernel32.lib, user32.lib, gdi32.lib and advapi32.lib

2 Answers 2

Set the path and you are done.

AFAIK, most programmers miss the auxDIBImageLoad() function, and there is no documented workaround. The glaux.lib is a static library and introduces some code bloat.

This image loader will work without <glaux.h>:

This routine will handle both RGB (24-bit) and indexed images correctly! No need for manual pixel twiddeling! The example loads from process.exe’s resource with numeric ID 1.

The LoadBitmap() can be replaced by LoadImage() to load from a file.

If your input image is known to be of uncompressed RGB type, GetDIBits is not needed, as you can LoadImage() with LR_CREATEDIBSECTION, access the bits using the bmBits pointer, and use the GL_BGR_EXT constant. (new and delete operators are not needed.)

GetDIBits needs any valid device context handle to succeed. Use GetDC/ReleaseDC if you have no handle handy.

The GL_BGRA_EXT constant is a Microsoft extension to opengl, its use is exactly for such GetDIBits output.

Loading compressed PNG/GIF/JPG is not tested here but should work the same way; GetDIBits() is your friend.

Moreover, that bitmap can be selected into a memory device context (making it to a painting canvas) and then modified by plain old GDI functions, especially text writing functions, to insert text to the bitmap.

Glaux lib как подключить в visual studio

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Visual studio home link

  • ProfileText
  • Sign in

Answered by:

Question

Answers

  • Marked as answer by rocket2038 Thursday, March 18, 2010 10:33 PM
  • Marked as answer by YiChun Chen Friday, March 19, 2010 5:08 AM

Thank you for your kindly sharing!

I can understand your favor on glaux. If it doesn’t disturb you a lot, you can try providing more information on your concern like why you need this feature for your project. To feedback it in the formal way, you can submit this suggestion on our Connect portal site:

Every feedback submitted will be evaluated carefully by our engineers. If this suggestion is reasonable and other customers have the similar concern on this feature, they will let us know their comments further through that portal. This would be helpful to improve Visual Studio products.

Thank you for your help.

Hope this helps! If you have any concern, please feel free to let me know.

Best regards,
Yichun Chen
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

  • Marked as answer by YiChun Chen Monday, March 22, 2010 2:40 AM

All replies

Based on your description, it seems that you want to apply glaux.h and glaux.lib in Visual Studio 2008.

As you mentioned, glaux is part of the Platform SDK. Moreover, it is deprecated. Instead link to kernel32.lib, user32.lib, gdi32.lib and advapi32.lib.
Please check: http://social.msdn.microsoft.com/Forums/en-US/windowssdk/thread/b66e5f7a-91f6-4dbe-b388-0c131008b08f

Hope this helps! If you have any concern, please feel free to let me know.

Best regards,
Yichun Chen
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com

(This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.) Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

Glaux lib как подключить в visual studio

(the following is still just a rough sketch of
how to get opengl working with VS6)

On numerous occasions I have had to start an OpenGL project from within a windows application. These are directions on how to get that started.

A good source of online information can be found here: OpenGL

In addition to the OpenGL api, I use the glut api to help deal with the window and keyboard controls.

This howto assumes you have the following minimum setup:

Microsoft’s visual studio version 6 (MS Visual C++ 6.0)

OpenGL with the included files listed below.

To get MS VC++ going:

file —> new —> Win32 Console App

choose —> create new workspace

choose —> An empty project

then include the code files: (main.cpp, etc. )

project —> Add to project —> files

to get opengl to start:

include this file into the project’s directory: "glos.h"

#include "glos.h" // MS specific stuff

. the include directory:

C:\Program Files (x86)\Microsoft Visual Studio\VC98\Include\GL

The files opengl32.dll and glu32.dll should already be in your windows system folder. If not then they will need to be placed there. So, to run the executable, you will have to copy the files: opengl32.dll, glu32.dll, and glut32.dll into your system folder:

In order to be able to compile the code using Visual C++, you have to copy the .lib files into the lib folder of Microsoft Visual Studio, which is usually:

C:\Program Files\Microsoft Visual Studio\VC98\Lib

and the .h files into the GL folder:

C:\Program Files\Microsoft Visual Studio\VC98\Include\GL

.. If the GL folder is not found, then create it yourself.

Add the following to the top of the files that are making calls to the OpenGL functions:

#include "glos.h" // MS specific stuff

#include <GL/gl.h> // system OpenGL includes
#include <GL/glu.h>
#include <GL/glaux.h>
#include <GL/glut.h> // GLUT support library.

. then we need to modify the library files in visual C++

. project —> settings —> link —> project options

opengl32.lib glu32.lib glaux.lib glut32.lib /nologo

. then it will link correctly.

I have placed these files here for easy access:

opengl_dlls.zip
( this zip file contains: glu32.dll glut32.dll glut.dll opengl32.dll )

Possible errors from MS VC++ 6:

Linking.
LINK : fatal error LNK1104: cannot open file "glut32.lib"
Error executing link.exe .

Follow the above folder creations and file placements, then place a good copy of glut32.lib into the directories:

C:\WINDOWS\system32
C:\Program Files\Microsoft Visual Studio\VC98\Lib

This should allow the linker to correctly find and open "glut32.lib".

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *