Skip to main content

Questions tagged [opengl]

OpenGL (Open Graphics Library) is a graphics standard and API which is platform independent and available for desktop, workstation and mobile devices. It is designed to provide hardware-accelerated rendering, and hence gives greatly improved performance over traditional software rendering. OpenGL is used for applications like CAD software and computer games. The OpenGL standard, as well as OpenGL ES, is controlled by the Khronos group.

-1 votes
0 answers
5 views

More efficient way of using VAOs in OpenGL

Each mesh is the set of a VBO and an EBO, assuming you have multiple meshes with the same vertex format (ex: position, color), you could use the same VAO for each mesh, like this: ... GLuint ...
Phoenix's user avatar
-1 votes
0 answers
29 views

Trouble setting up OpenGL on Windows (in VS Code)

I am following the tutorial text to setup OpenGL on Windows 11. This is the main script(HelloWorld.cpp): #include <GLFW/glfw3.h> int main(void) { GLFWwindow* window; /* Initialize the ...
Yesko's user avatar
  • 1
0 votes
0 answers
30 views

sfml widget with transparent background in Qt

I am using the QSFML repo to use sfml 2.x inside a Qt 6.x widget. I cound not find a way to make the sfml background transparent to see classic qt widgets behind the sfml widget (whatever I try the ...
plank's user avatar
  • 223
-4 votes
0 answers
26 views

glGenBuffers() undeclared when using GLAD? [closed]

When trying to compile project that uses GLAD on Arch, I get the compilation error: error: 'glGenBuffers' was not declared in this scope; did you mean 'glReadBuffer'? 5 | glGenBuffers(1, &...
Piotrulo1's user avatar
-3 votes
0 answers
53 views

How do I create a window creation function for OpenGL? [closed]

GLFWwindow* window = glfwCreateWindow(SCR_WIDTH, SCR_HEIGHT, "OpenGL", NULL, NULL); if (window == NULL) { cout << "Failed to Create GLFW window" << endl; ...
Metalicious's user avatar
-1 votes
0 answers
31 views

How to get glVertexAttribPointer to work with image and vertices?

I am attempting at displaying an image converted to a Python OpenGL texture on a screen (using pygame.image.tostring(image, 'RGBA')). However, an envelope is drawn instead, 75% of the screen being ...
DryWall's user avatar
-1 votes
0 answers
34 views

Enabling Game mode for own apps on Mac

I am currently making some rendering apps using OpenGL on Mac. The problem is that those games, even when I go to full screen mode, don't enable the game mode. Therefore my fps is pretty low. Is there ...
Peko's user avatar
  • 1
0 votes
1 answer
47 views

Access violation inside glfwPollEvents()? [closed]

When I start my program: #include <GL/glew.h> #include <GLFW/glfw3.h> #include <iostream> #include <fstream> #include <string> #include <sstream> struct ...
Lemoine Maxence's user avatar
0 votes
0 answers
45 views

Rotate an object around a fixed point calculated from mouse click position

My model keeps jumping around my monitor screen after these steps: Select a point. Rotate. Select another point. I wonder if there is anything wrong with my transformations. Here is how it looks: ...
nghia_pham's user avatar
-1 votes
0 answers
73 views

How do I avoid visual artifacts around text when taking a screenshot? [closed]

I'm working on a Qt application where the background is drawn using OpenGL, and the front is rendered by QPainter to a QImage that is then used as an OpenGL texture to be displayed at the top. On ...
Arseni Mourzenko's user avatar
-2 votes
0 answers
15 views

pyassimp.errors.AssimpError: assimp library not found [closed]

(CGIP) ┏[vbk16] ┖[E:\6th Sem\CG\Mini_Project]> python .\Program.py Traceback (most recent call last): File "E:\6th Sem\CG\Mini_Project\Program.py", line 7, in <module> import ...
VELUPUGONDA BHAVANI KRISHNA's user avatar
-3 votes
0 answers
64 views
+250

Alacritty - Can't see cursor after up launch on Ubuntu [closed]

Can't see a cursor when I launch alacritty via Linux making it unusable via a fresh install... Am running a virtualized Ubuntu 24.04 Linux through UTM on my Apple M2 Macbook Pro. Everything (...
PacificNW_Lover's user avatar
-1 votes
2 answers
53 views

How to render text using FreeType and OpenGL

Currently I managed to render quads which look like their corresponding characters if I'm not multiplying by sampled, but whenever I do so then the quads turn fully transparent and disappear Setup for ...
osk 's user avatar
  • 1
-3 votes
0 answers
49 views

Find Camera Location Using solvePnP [closed]

As part of a project I'm working on, I need to find a camera location using solvePnP. The goal of this project is to find the position of the camera using solvePnP, and compare to the true camera ...
Barak Daniel's user avatar
-2 votes
0 answers
64 views

Hard coding array working while passed array is not [duplicate]

float vertices[] = { 0.5f, 0.5f, 0.0f, // top right 0.5f, -0.5f, 0.0f, // bottom right -0.5f, -0.5f, 0.0f, // bottom left -0.5f, 0.5f, 0.0f // top left }; ...
TheGerken's user avatar

15 30 50 per page
1
2 3 4 5
2541