Using Cython for game development?

How practical would it be to use Cython as the primary programming language for a game? I am a experienced Python programmer and I absolutely love it, but I'm admittedly a novice when it comes to...

Texture and color together in GLSL?

I cant figure out, how to get with OpenGL ES 2.0 similiar Results to OpenGL ES 1.1. I want to use actually a Sampler2D (to blend my texture with Alpha Channel to the Framebuffer) and also set an...

How to recalculate axis-aligned bounding box after translate/rotate

When I first load my object I calculate the initial AABB with the maximum and minimum (x,y,z) points. But this is in object space and the object moves around the world and more importantly,...

User interface for an OpenGL project?

I am working on an OpenGL project for a solar system using Visual C++. I am done with quite a bit of the coding, but I need to implement it as a user learning module, which includes an overview...

How do you get ANativeWindow from a SurfaceTexture in the NDK

I've got some OpenGL ES code that has been rendering to a GLSurfaceView, and I'm currently modifying it to work with either SurfaceView and TextureView. The common element I need from both inside...

boost python on windows crashes at import("__main__");

I am writting a program which uses boost python embedded. My program works no problem on Linux Mint but on Windows its a huge pain. I am using MingW so I tried creating an import lib following...

PyOpenGL glutInit NullFunctionError

I am running Anaconda Python 2.7 on a Win7 x64 machine and used pip install PyOpenGL PyOpenGL_accelerate at the Anaconda command line to install PyOpenGL. I have some code (not my own I must...

Why am I not getting a forward compatible OpenGL context with GLFW?

To my knowledge, when I set these context constraints on GLFW: glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR,...

MIME type for shader code

Is there any kind of established MIME type for OpenGL shader program source code? I know that the official IANA table doesn't seem to mention one such, so it would have to be some experimental...

OpenGL ES 1.1 - texture support (Power of two)

I am just about to release an wallpaper app thats going to use users own images... which may be non power of 2 size. Textures of all size seems to be supported on my Nexus 2013 tab and Moto X...

My very basic fragment shader is not working

I'm trying to make a white triangle with the coordinates in the code below to appear on the window. But it shows nothing but a blank screen. These are my codes. #Vert Shader #version 450 in vec3...

admob ad banner overlapping my game screen android

i successfully integrated admob ads but i have an issue about placing banner ad under the screen of the game without overlapping the view of my game my current problem is like the picture Pic 1...

Ads is not visible. Not refreshing add. Scheduling ad refresh 60000 miliseconds from now

Hi i integrated an admob banner in my game via xml but it not showing in the bottom of my screen the layout of banner already appear in graphical layout .. Also when i check my logCat i saw this...

How to draw a cube in OpenGL?

I need help. I have found several solutions to draw cube in OpenGl, but I have a problem. My code is: wglMakeCurrent(pDC->m_hDC, m_hrc); glClear(GL_COLOR_BUFFER_BIT |...

Android Emulator crashed with opengl error

I have android SDK tools: 25.2.2 and SDK platform tools: 25, build tools: 25. When I tried to launch emulator using AVD manager or Android Studio, it crashed with in few seconds (1-4 seconds)...

gluLookAt specification

I have some problems understanding the specification for gluLookAt. For example the z-axis is defined as: F = ( centerX - eyeX, centerY - eyeY, centerZ - eyeZ ) with center being the point the...

How can I achieve noSmooth() with the P3D renderer?

I'd like to render basic 3D shapes without any aliasing/smoothing with a PGraphics instance using the P3D renderer, but noSmooth() doesn't seem to work. In OF I remember calling...

Guarantees about the lifetime of a reference in a local variable

In Swift, I can use the ARC mechanism to manage the lifetime of resources external to the process because instances of classes are de-initialized predictably. This is in contrast to environments...

Getting Keyboard Input Cpp -- No external Libraries

I am attempting to create a game engine using OpenGL and C++ without any external libraries other than OpenGL itself. What would be the best way to receive keyboard / mouse input? I know that...

How to draw lots of polygons quickly in pycairo?

I have a function which draws polygons into a pycairo context like so: def draw_polygon(context, polygon): context.move_to(*polygon[0]) for point in polygon: ...

Where is Qt QOpenGLWidget?

I'm trying to write a C++ application that uses QOpenGLWidget, but qtcreator gives "'QOpenGLWidget' file not found" error on this line: #include <QOpenGLWidget> Documentation says QOpenGLWidget...

Drawing a thick line with legacy OpenGL (immediate mode) in C++

i wanted to create a line that is thick using OpenGL library in c++ but it is not working. i tried this code: glBegin(GL_LINES); glLineWidth(3); glVertex2f(-0.7f, -1.0f); glVertex2f(-0.7f,...

Why does my custom Swing component repaint faster when I move the mouse? (Java)

I am trying to make a 2D game with Java and Swing, and the window refreshes too slow. But if I move the mouse or press keys, the window refreshes as fast as it should! Here is a GIF showing how...

What is the coordinate system used in metal?

In metal what coordinate system to use inside shader (in and out)? and when we render to texture is it the same? with the z buffer also? Are there any inconsistencies? finally what are the...

Android BiometricPrompt on AuthenicationSucceeded does not work

Android BiometricPrompt has completed fingerprint recognition, but onAuthenicationSucceeded does not work. And I used androidx Example: Log.i("finger", "onAuthenticationSucceeded") is not...

Process HDR10 video on Android with MediaCodec

I want to do tone-mapping of HDR10 on Android use OpenGL ES, the first thing is to get the frame data. On Android after video decoded by mediacodec, its data is on an external oes texture, I want...

Can´t save data into Firebase

I'm trying to save into my Firebase database but I unable to do it. Right after the app intitialize the serive is disconected, but the app don't crash. I able to switch between the pages, but...

Apple AWT Internal Exception: NSWindow drag regions should only be invalidated on the Main Thread

I am trying to run a PApplet class. I am running it on Eclipse, in MacOS. All the necessary Library files are included in the application and using Java 1.8 to compile and run the class. Mac OS...

Getting error "CUDA backend requires cuDNN" when configuring OpenCV cmake build with cuda backend turned on

My goal: My goal is to configure a build of OpenCV 4.5.1-dev with support for cuda, tesseract and QT without any cmake error.. The problem I am having: I am getting the following error when I...

Failed to find "gl.h" on macOS 11.3

I've got XCode 12.5 up and running on macOS 11.3 (M1 chip) in Github Actions as a self-hosted runner. While my macOS workflow is able to find gl.h in the github-hosted machine just fine, my own...