OpenGL : Détection environnement

Partagez votre expérience de PureBasic avec les autres utilisateurs.
Avatar de l’utilisateur
falsam
Messages : 7317
Inscription : dim. 22/août/2010 15:24
Localisation : IDF (Yvelines)
Contact :

OpenGL : Détection environnement

Message par falsam »

Quel est mon environnement OpenGL, c'est ce que je vous propose de découvrir avec ce petit code.

Code : Tout sélectionner

; Source : https://www.khronos.org/registry/OpenGL-Refpages/es2.0/xhtml/glGetString.xml
OpenWindow(#PB_Any, 0, 0, 0, 0, "",#PB_Window_Invisible)
OpenGLGadget(#PB_Any, 0, 0, 0, 0)

Debug "OpenGL Version : " + PeekS(glGetString_(#GL_VERSION), -1, #PB_UTF8)
Debug "Vendor : " + PeekS(glGetString_(#GL_VENDOR), -1, #PB_UTF8)
Debug "Vidéo Card : " + PeekS(glGetString_(#GL_RENDERER), -1, #PB_UTF8)
N'hésitez pas à poster le résultat de votre configuration.

Voici mon environnement OpenGL
OpenGL Version : 4.6.0 NVIDIA 451.67
Vendor : NVIDIA Corporation
Vidéo Card : GeForce GTX 1650 Ti/PCIe/SSE2
Configuration : Windows 11 Famille 64-bit - PB 6.20 x64 - AMD Ryzen 7 - 16 GO RAM
Vidéo NVIDIA GeForce GTX 1650 Ti - Résolution 1920x1080 - Mise à l'échelle 125%
Avatar de l’utilisateur
Thyphoon
Messages : 2706
Inscription : mer. 25/août/2004 6:31
Localisation : Eragny
Contact :

Re: OpenGL : Détection environnement

Message par Thyphoon »

Sur mon ordi du boulot
OpenGL Version : 4.6.0 - Build 27.20.100.9664
Vendor : Intel
Vidéo Card : Intel(R) UHD Graphics
Ollivier
Messages : 4197
Inscription : ven. 29/juin/2007 17:50
Localisation : Encore ?
Contact :

Re: OpenGL : Détection environnement

Message par Ollivier »

Code : Tout sélectionner

4.6.0 - Build 27.20.100.8280
Intel
Intel(R) UHD Graphics 605
Extensions : 231
Code pour version démo de PB:

Code : Tout sélectionner

Global.I gl = OpenLibrary(#PB_Any, "opengl32.dll")

OpenWindow(#PB_Any, 0, 0, 1, 1, "", #PB_Window_Borderless)
OpenGLGadget(#PB_Any, 0, 0, 1, 1)

Procedure.S glGetString(arg.I)
 ProcedureReturn PeekS(CallFunction(gl, "glGetString", arg), -1, #PB_UTF8)
EndProcedure

Debug glGetString(#GL_VERSION)
Debug glGetString(#GL_VENDOR)
Debug glGetString(#GL_RENDERER)
Debug "Extensions : " + Str(CountString(glGetString(#GL_EXTENSIONS), " ") + 1)
Grâce à Kcc, j'ai corrigé la boulette...
Dernière modification par Ollivier le jeu. 17/mars/2022 20:19, modifié 2 fois.
Avatar de l’utilisateur
Kwai chang caine
Messages : 6989
Inscription : sam. 23/sept./2006 18:32
Localisation : Isere

Re: OpenGL : Détection environnement

Message par Kwai chang caine »

Code : Tout sélectionner

OpenWindow(#PB_Any, 0, 0, 0, 0, "La fenetre à OLLIVIER", #PB_Window_Invisible)
:wink:
ImageLe bonheur est une route...
Pas une destination

PureBasic Forum Officiel - Site PureBasic
Ollivier
Messages : 4197
Inscription : ven. 29/juin/2007 17:50
Localisation : Encore ?
Contact :

Re: OpenGL : Détection environnement

Message par Ollivier »

Oul... La boulette... J'avoue, je l'ai carotte à falsam... Mais, bien mal acquis ne profite que déceptivement...
Avatar de l’utilisateur
SPH
Messages : 4937
Inscription : mer. 09/nov./2005 9:53

Re: OpenGL : Détection environnement

Message par SPH »

Code : Tout sélectionner

OpenGL Version : 4.6.0 NVIDIA 471.41
Vendor : NVIDIA Corporation
Vidéo Card : NVIDIA GeForce GTX 650 Ti/PCIe/SSE2
Dernière modification par SPH le mar. 22/mars/2022 14:00, modifié 1 fois.

!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Intel Core i7 4770 64 bits - GTX 650 Ti
Version de PB : 6.12LTS- 64 bits
Avatar de l’utilisateur
TazNormand
Messages : 1297
Inscription : ven. 27/oct./2006 12:19
Localisation : Calvados (14)

Re: OpenGL : Détection environnement

Message par TazNormand »

Code : Tout sélectionner

OpenGL Version : 4.6.14758 Compatibility Profile Context 21.1.1 27.20.14527.2002
Vendor : ATI Technologies Inc.
Vidéo Card : AMD Radeon HD 7900 Series
Image
Image
Patrick88
Messages : 1564
Inscription : mer. 21/janv./2004 18:24

Re: OpenGL : Détection environnement

Message par Patrick88 »

linux mint + pb 5.73 -> compilerOptions -> subSystem -> gtk2, sinon [COMPILER] Linker error!

Code : Tout sélectionner

OpenGL Version : 4.6.0 NVIDIA 470.103.01
Vendor : NVIDIA Corporation
Vidéo Card : NVIDIA GeForce GTX 1050/PCIe/SSE2
Avatar de l’utilisateur
Guillot
Messages : 672
Inscription : jeu. 25/juin/2015 16:18

Re: OpenGL : Détection environnement

Message par Guillot »

Code : Tout sélectionner

OpenGL Version : 4.4.0 - Build 20.19.15.4703
Vendor : Intel
Vidéo Card : Intel(R) HD Graphics 5500
merde, chuis pas à jour !
(ça voudrai dire que ça se fait pas automatiquement)
Répondre