Favorite Tags
View questions based on your favorite tags across the Stack Exchange network

0 answers

How to add AVR support to Clang?

At the moment LLVM does not have AVR target and this fork is working on it. It seems to be ready to compile LLVM bitcode to AVR assembly. But Clang does not support AVR target (it does not support AVR ...

2 answers

Android NDK linking, “undefined reference” When linking with a Static Lib

Environment android-ndk-r10c VisualGDB Windows x64 Use-case 1 ADB Cmdline executable ( no Java / APK ) is consist of several C++ files Executable is compiled having "APP_STL := gnustl_static" at ...

0 answers

How can I properly manage data in modern OpenGL while considering performance?

In modern OpenGL (3.x+), you create buffer objects which contain vertex attributes, such as positions, colors, normals, texture coordinatess, & indices. These buffers are then assigned to a ...

1 answer

How to pick the right ANDROID_EABI?

I am building libopenssl for Android on Ubuntu. I noticed that one of the steps is to define the following two terms: _ANDROID_API="android-16" _ANDROID_EABI="arm-linux-androideabi-4.6" The value ...

1 answers | 33 mins ago by Peter on Stack Overflow stackoverflow.com
0 answers

Creating an RGB CVOpenGLESTexture in iOS

I am trying to create a 3-channel CVOpenGLESTexture in iOS. I can successfully create a single-channel texture by specifying kCVPixelFormatType_OneComponent8 in CVPixelBufferCreate() and GL_LUMINANCE ...

0 answers

creating no.of display ids for eglgetdisplay

currently iam creating display for my opengl application by caling eglgetdisplay with the parameter EGL_DEFAULT_DISPLAY. if want to create more than one display in that case which parameter i can pass ...

0 answers

How can I expand one viewPort to “Full Screen”?

I'm working on a project using JOGL API. Now I am stuck at a point that is the followed: -I run the program and it shows a Canvas divided in 4 viewPorts. The objective of the project is basically ...

0 answers

Symbol not found: _gll_noop running Dislin gfortran Example under Yosemite

I finally managed to compile the dislin example exa_f90.90 with: gfortran exa_f90.f90 -freal-4-real-8 -I../darwin_intel_64/g95 -L/usr/local/dislin/lib -ldislin.10.4.0 -o exa_f90 ...

3 hours ago by Roger on Stack Overflow stackoverflow.com
1 answer

Using llvm do loop unrolling, failed at spliting block

I am doing llvm for some basic loop transformation practice. The target loop I want to transform is as following: int main () { int j=0,i=0; int x[100][5000] = {0}; for (i = 0; i < ...

1 answers | 3 hours ago by Chang May on Stack Overflow stackoverflow.com
0 answers

Google Play Game Services Achievements Popup under dialog

In an OpenGL GLSurfaceView, when unlocking achievements while a dialog is also visible on the screen, the achievement popup is displayed behind the dialog and is barely visible (It is also darkened ...

2 answers

How to use libstagefright's MediaBuffer properly?

I: Create android::MediaBufferGroup; Fill it up with multiple buf_group.add_buffer(new android::MediaBuffer(bufsize)); on initialisation; Do buf_group->acquire_buffer(&buffer) when I need a ...

2 answers

How can I load a level using a sound file? [JAVA]

I'm trying to load a level from a music file (mp3, midi, etc, I'm not picky) for a rhythm-based game. I must be searching in all the wrong places because I can't seem to find any help on this topic. ...

2 answers

How to get notified when glTexImage2D finished upload?

I want to render after a texture is uploaded to OpenGL, but I cannot get notified about the completition. I do want to avoid using animation, or any kind of repetitive rendering. Is glTexImage2D ...

0 answers

How to run NDK implemented Android code with Android Studio?

I tried importing ndk implemented android code into Android studio , it got imported but now it is showing error in the path "/lib/include/myFile.h" . Even if that file is there, android studio not ...

0 answers

Using GNU STL and C++11 with V8 on Android NDK

I am building an application on Android using NDK and V8. I would prefer to use C++11 and GNU STL for features such as shared_ptr; however, the V8 build system seems to be hardcoded to use ...

0 answers

How to match SketchUp Camera in Processing/OpenGL?

I'm trying to match a scene from Sketchup in Processing/OpenGL but can't seem to get the measurements right. I'm using these simply commands in the Ruby Console in Sketchup: model = ...

0 answers

Creating a Rounded Cube With Bezier Curves?

I'm trying to make a cube with rounded corners in OpenGL, much like a die if you were to sand down the corners, or one of those novelty stuffed chairs. Bezier curves seem to be the best way to go ...

1 answer

Compiling a shader with fxc results in invalid ps_5_0 output semantic 'COLOR0'

I'm attempting to compile a shader at the command prompt. What am I doing wrong that would make it generate this error? fxc /Od /Zi /T ps_5_0 /E "ps_main" /Fo "basic.pso" "basic.ps" Here is the ...

2 answers

OpenGL ES 2.0 only draws the object once

First, let me say I'm sorry for asking so many questions today. So, I have a class for a circle. And I have an arraylist with 3 circle instance, each with a different x coordinate to draw. For ...

0 answers

Getting a float-backed IOSurface from AVPlayerItemVideoOutput

I have a 10-bit ProRes4444 file that I am rendering to a CAOpenGLLayer so I can do some processing on it during playback. However, since this is a 10-bit video, I would like to get an IOSurface with ...

0 answers

OpenGL: How to write into a texture channel by channel, by sampling and rendering to the same texture

The scenario is: I have a texture A. There are 3 loops. Each loop writes a channel into the texture A. After the 3 loops, all 3 channels in A are updated. The shader is like: vec3 tmpVec3 = ...

0 answers

FLTK + OpenGL - rectangle not drawn

I used OpenGL for a while and now I wanted to use it in conjunction with FLTK. I subclassed Fl_Gl_Window and implemented the draw method: void MainWindow::draw() { if(!valid()) { // ...

0 answers

Drawing in OpenGL using triangle strips or quad strips

I have exported a .obj file and I have parsed the information inside into vectors of verticies, uvs and normals (C++). How do I draw this data in OpenGL. Note that I am running an old version of ...

0 answers

How can I convert this xBR shader file into something I can use in XNA? (partially working)

I'd like to render my game scaled up with one of the hqx filters (hq2x, hq3x or hq4x) or an xbr filter in a shader. I was able to find implementations of these shaders: hqx xbr (hqx derivative - ...

2 answers

Multiple meshes, multiple VBOs, multiple VAOs, OpenGL 4.1

I am trying to draw two different meshes using OpenGL 4.1. At any given time, only one of the meshes will be drawn, and my goal is to switch between them. I am storing the vertex and index data for ...

2 answers | 8 hours ago by hobgreenson on Stack Overflow stackoverflow.com
0 answers

Is it possible to use video background for QGLWidget

I need to display a menu implemented using OpenGL on top of video background. I'm trying to use QGLWidget and pass it my widget with video as parent. QGLWidget displays, but it fully hides the parent ...

0 answers

Grayscale and 2D lighting using cocos-2dx

I want to create a lighting effect on a gray-scaled world using cocos2d-x. What I've done is creating a layer which runs a shader program that receives light positions and radiuses as input and ...

3 answers

Crosscompiling a large C++ project for ARM/Android - issues and considerations

In our team we have a C++ project built on OpenCV and VLFeat written by a colleague who has just left. I have been asked to cross-compile it for Nexus 4 (ARM), run it and profile it (gprof). Hence, ...

2 answers

Assembly / Neon code crashing

I'm using the following code: #include <stdlib.h> #include <fcntl.h> int main(int argc, char **argv) { char *auyvy = malloc(640 * 480 * 2); char *ay8 = malloc(640 * 480); ...

2 answers | 9 hours ago by gregoiregentil on Stack Overflow stackoverflow.com
1 answer

android art runtime check_jni.cc error on package name

--EDIT-- pretty sure the problem caused by the following static code in the CPP layer of the NDK project used in my project... ./FLACStreamEncoder.cpp:static char const * const ...

15 30 50 per page
1 2 3