Code base openGL 2.0 with waterfalls

Hi devs,

I am new to the BB 10 and also in C++ development.

Can someone help me set up the openGL code 2.0 with waterfalls (with overlay or underlay). In the documentation, samples are in openGL 1.1 with waterfalls or Core with 2.0. I just need a sort of triangle of basic Hello of a sample.

Thank you

OK I cracked! I had to comment under opengl function to make it work.  To use screen_create_window or screen_create_window_type or screen_create_window_type_pv according to the display. It's my guess. Thank you guys for your support. Now the real development begins!

if (screen_create_window(&mScreenWindow, mScreenCtx)){
        fprintf(stderr,"Error while creating screen window");
    }
    else{
        fprintf(stderr,"Screen Window created\n");
    }

Tags: BlackBerry Developers

Similar Questions

  • Supporting more than two OS/SDK on a code base? Pretreatment or another method?

    I supported 4.3.0 4.7.0 on the same code base. Now, I wanted to support 5.0 as well.
    Say for example the following code: (note I removed the / / in the samples)

    String text;#ifdef SDK_470    text = "hello 4.7.0";#else    text = "hello 4.3.0";#endif
    

    It is happy when there were two OS/SDK. But now with the introduction of 5.0 how you Pretreat it?

    Given the number limited BB supplies, I've tried:

    
    

    This compiles with the following error: '#if' not allowed inside '#if'

    Note: BB only supports #ifdef #ifndef #else #endif

    So,
    Or do you guys use a totally different methodology to build support for multiple OS?
    Or do you guys use a series of much more complex defines? ie SDK_430_Greater_Than

    Some enlightenment would be much appreciated

    you can define multiple tags in the jdp. for example:

    Options=-quiet -define=PREPROCESSOR;VER_4_6_0_AND_ABOVE;VER_4_7_0_AND_ABOVE

    #ifdef SDK_500    text = "hello 5.0.0";#else
    
    #ifdef SDK_470    text = "hello 4.7.0";#else    text = "hello 4.3.0";#endif // endif SDK_470
    
    #endif // endif SDK_500
    
  • What are you doing for the era code 80151012. I spoke with Xbox live support could not fix it.

    What are you doing for the era code 80151012. I spoke with Xbox live support could not fix it.

    What are you doing for the era code 80151012. I spoke with Xbox live support could not fix it.

    Hi, Jason.

    the only way to fix this is to talk to xbox support, if they suggest you to do something you have already been told and they will suggest something else.

    phone numbers:

    * In the United States, to the Canada or Puerto Rico: 1-800-469-9269 or 1-800-4MY-XBOX

    See also this forum account issues:

    forums.Xbox.com/.../12.aspx

    Have you tried using another browser?  Google Chrome, Firefox?

    Contact for chat

    http://support.Xbox.com/en-us/contact-us?XR=footnav

  • I have a code 19 on my computer with a drive of 7710 h optiarc

    I have a code 19 on my laptop with an optiarc 7710 h drive so now I can't load and play the cd in my laptop

    According to test system Opertaing following the steps under "Windows 7 or Windows Vista" or "Windows XP" in the MS KB article:

    http://support.Microsoft.com/kb/982116

    These measures, to remove the UpperFilters and LowerFilters, values if they exist, in the registry key named can help.

    Create a System Restore Point beforehand and restart the computer later.

  • I work with a third-party provider that adds agricultural markets that will update every 10 minutes on my site of muse. I'm a designer by trade, and they are the html code. They have problems with my original design elements being pushed around when they

    I work with a third-party provider that adds agricultural markets that will update every 10 minutes on my site of muse. I'm a designer by trade, and they are the html code. They have problems with my original design elements being pushed around when they add the js include. They recommend at this time that I use another program like Wordpress, but I won't do that, because a large part of the site is designed and just add the markets. Here is the link to the site. At this point, the home page is the question. I can also provide a screen shot of how markets are supposed to look like

    This part does not seem too difficult.

    I bet they are now trying to "knit" their share of data right in your Muse- generated page, and they tell you that your code is terrible (and their smells like daisies). The usual clash...

    But it might be easier for you (and many others) if they offer their content as a separate page of small, so you can incorporate it as an iframe tag in an HTML object in Muse. No matter what code for permission to host the iframe, could be inserted as a simple script in Panel of Options of Page of Muse.

  • Accidentally that hidden/removed the base Panel (the one with the shadows, made highlights, contrast, exposure) to develop module. I was clicking on the exposure slider when my mouse slipped and I clicked on something. How to do back panel?

    Accidentally that hidden/removed the base Panel (the one with the shadows, made highlights, contrast, exposure) to develop module. I was clicking on the exposure slider when my mouse slipped and I clicked on something. How to do back panel?

    Make a right-click on any other Panel name develop. In the menu that appears, put a check mark next to the base.

  • Error code 1606 something to do with the base register.

    Running Windows 7.    Error code 1606 and Toshiba said they can only reset it to the factory.  Microsoft can "edit this recording", they say.  How?

    Hi BigH_Lex,

    When you get this error?  Is this a recent problem?  Have been recent changes to the computer, such as new hardware or software, including the Windows updates?  Try the system restore to a point before this issue.

    1. reboot your computer and press the F8 key until you reach the Advanced Startup Options menu.

    2. Select Safe Mode.

    3. open a command prompt and type SFC/scannow.

    Dena
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Basis of LabVIEW Development with Compact RIO device software

    Hello.  Currently, I have the LabVIEW Base development software package and have been using it with DAQ Compact devices for the acquisition of basic data.  I would now like to start integrating controls in my system, changing to RIO Compact for deterministic real-time features.  My question is that I would be able to build applications for the Compact RIO system using only the basis of LabVIEW Development package without updating immediately?  Maybe some features are not available for me, but could at least get a good start like that?

    A CompactRIO embedded time real operating system (RTOS) called VxWorks you need to target the deployment of LabVIEW code to the device. Classic LabVIEW screws you will have been written so far are built to target general purpose operating systems (GPO) such as windows.

    To create screws that are deployable to STSOp, you will need the real-time Module that is not included in the basis of LabVIEW. As a result, to take advantage of the embedded FPGA, you'll need to install the LabVIEW FPGA Module as well.

    As long as you have the FPGA modules and in real time, it seems to me that you should be able to control these devices with LabVIEW Base. Without these software components you will not be able to create an instance of the device target your LabVIEW project.

  • openGL 2.0 with jpeg textures

    Hi devs,

    I have a problem texturing a plane with textures with opengl 2.0. I am able to make the aircraft with colors, but as soon as I try to apply textures, I'm not. Instead, I see a shaded gray screen. So I guess that the vertices of the geometry and the viewport, etc. are correct, but something wrong with the application of textures. Does anyone have a sample code snippet to bind the texture on a plane using opengl 2.0? I want to use the triangle strip.

    Here are the steps I used to create a simple plan with a texture

    -Once I've created the foreign window and initiated openGL.

    -This is my plane vertices and texture coordinates

    summits [0] = - 10.0f;
    summits [1] = - 10.0f;
    vertices [2] = - 10.0f;

    summits [3] = 10.0f;
    summits [4] = - 10.0f;
    summits [5] = - 10.0f;

    summits [6] = - 10.0f;
    summits [7] = 10.0f;
    summits [8] = - 10.0f;

    summits [9] = 10.0f;
    summits [10] = 10.0f;
    summits [11] = - 10.0f;

    textures [0] = 0;
    textures [1] = 0;
    textures [2] = 1;
    textures [3] = 0;
    textures [4] = 0;
    textures [5] = 1;
    textures [6] = 1;
    textures [7] = 1;

    const char * = vSource
    "precision float mediump;
    "uniform mat4 u_projection;
    "attribute vec2 a_TexCoordinate;
    "attribute vec4 a_position;
    "attribute vec4 a_color;
    "various vec4 v_color;
    "various vec2 v_texCoordinate;
    "Sub main().
    "{"
    "gl_Position = u_projection * a_position;
    "v_texCoordinate = a_TexCoordinate;"

    "v_color = a_color;"
    "}";

    const char * fSource =
    "various lowp vec4 v_color;
    "u_Texture sampler2D uniform;
    "various vec2 v_TexCoordinate;
    "Sub main().
    "{"
    "gl_FragColor = v_color;"
    "gl_FragColor = texture2D (u_Texture, v_TexCoordinate);"
    "}";

    -J' compiled the fragment and vertex shader and related program

    I created the projection with perspective view matrix

    GLuint projectionLoc is glGetUniformLocation (program, "u_projection");.
    GLfloat left = - 4.0f;
    GLfloat right = 4.0f;
    GLfloat low = - 3.0f;
    GLfloat top = 3.0f;
    GLfloat zNear = 4.0f;
    GLfloat zFar = 50.0f;
    GLfloat proj [16] = {2.0 * zNear / (right-left), //0}
    0, //1
    0, //2
    0, //3
    0, //4
    2.0 * zNear / (up-down), //5
    0, //6
    0, //7
    (right + left) / (right - left), //8
    (top + bottom) /(top-bottom), //9
    -(zFar+zNear) /(zFar-zNear), //10
    -1, //11
    0, / / 12
    0, / / 13
    -(2 * zFar * zNear) /(zFar-zNear), / / 14
    0}; 15

    -Generated vertex and filled with data
    glGenBuffers (1, & vertexID);
    glBindBuffer (GL_ARRAY_BUFFER, vertexID);
    glBufferData (GL_ARRAY_BUFFER, sizeof (vertices), tops, GL_STATIC_DRAW);

    -Generated in buffers for texture coordinates. It is perhaps here lies the problem.

    glGenBuffers (1, & textureId);
    glBindBuffer (GL_ARRAY_BUFFER, textureId);
    glBufferData (GL_ARRAY_BUFFER, sizeof (textures), textures, GL_STATIC_DRAW);

    -The extracted texture assets/images folder

    UINT textureArray [1];

    QString appFolder(QDir::homePath());)
    appFolder.chop (4);
    QString path = appFolder + ' / app/native/assets/images/left.jpg ';

    -J' used the method CreateTextures of the http://perso.limsi.fr/jacquemi/IG-TD/texjpeg.cpp link

    CreateTexture (textureArray, path.toAscii () .data (), 0);

    -Set viewport and activated 2d, texture etc.

    glViewport (0, 0, surface_width, surface_height);

    Typical render pass
    glClear(GL_COLOR_BUFFER_BIT |) GL_DEPTH_BUFFER_BIT);

    glClearDepthf(1.0f);
    glClearColor (0.0f, 1.0F, 0.0f, 1.0F);

    glEnable (gldisable(gl_cull_face));

    glEnable (GL_TEXTURE_2D);

    glEnable (GL_BLEND);

    -Permitted and bind the vertex data

    glEnableVertexAttribArray (positionLoc);
    glBindBuffer (GL_ARRAY_BUFFER, vertexID);
    glVertexAttribPointer (positionLoc, 3, GL_FLOAT, GL_FALSE, 3 * sizeof (GLfloat), 0);

    -Permitted and bind texture information. It is once again where the lies of the question can be

    glEnableVertexAttribArray (textureLoc);
    glBindBuffer (GL_ARRAY_BUFFER, textureId);
    glVertexAttribPointer (textureLoc, 2, GL_FLOAT, GL_FALSE, 4 * sizeof (GLfloat), 0);

    glUniformMatrix4fv (projectionLoc, 1, false, proj);
    glUniform1i(textureLoc,0);

    -Drew tables with GL_TIANGLE_STRIP

    glDrawArrays (GL_TRIANGLE_STRIP, 0, 4);

    Disable the berries of the attribute
    glDisableVertexAttribArray (positionLoc);
    glDisableVertexAttribArray (colorLoc);
    glDisableVertexAttribArray (textureLoc);

    -Stamps exchanged

    int rc = eglSwapBuffers (egl_disp, egl_surf);
    If (rc! = EGL_TRUE) {}
    fprintf (stderr, "Swap buffer failed\n");
    } else {}
    fprintf (stderr, "Swap buffer passed\n");
    }

    -Thanks in advance

    ~ {A * beep * osh}

    Try to capitalize the "t" in this line

    "various vec2 v_texCoordinate;

    in your vertex shader and see if that helps.

  • Bug: OpenGL @ 480 p with the new Apple TV 4

    I have a Panasonic 480 p plasma monitor. Apple TV 4 is supposed to be compatible with 480 p, however, there seems to be a bug in the operating system during the launch of the games that are based on the OpenGL (I guess it's OpenGL).

    Everything works fine until I have run a game that is 3D - then the screen goes black and I get the message "no signal" TV. I have to switch to a different entry, click on the remote a few times and then switch to the Apple TV input to get video is displayed again. It seems that during the initial loading of the game, the AppleTV sends a resolution of 1080 p (I guess) that cannot display my TV.

    It happens with any game that uses the 3D is not a problem of developer 3rd party.

    Here is a video of what happens:

    https://www.YouTube.com/watch?v=je3L7YuH560

    I hope that someone from Apple sees this and it may degenerate into OS developers!

    We are all of the users like you.  Give your comments directly to Apple.  http://www.Apple.com/feedback/AppleTV.html

    Good day.

  • On Windows 7 update KB972270 fails with Code 800F0902 and KB976662 fails with the error Code 800706BE

    Former title: upgrade to Windows 7.

    I installed the Windows 7 upgrade.  I was running Windows Vista Home Premium 32 bit.  The upgrade installed without problem, but I have problems with updates.  It shows now that the downloads are 97%, but when I double click the icon to update in the center of the Action, it does not open.  My installation history that two updates failed.  They are:

    Update security for Windows 7 (KB972270)

    Update for Windows 7 (KB976662)

    Error details: Code 800706BE

    My computer is a Dell Inspiron 1525.  Any help would be greatly appreciated.

    Error details: Code 800F0902

    Hello
     

    Method 1.
    Windows provides a built-in utility that can automatically find and fix some problems with Windows Update.
    Here are the steps to run this utility for troubleshooting.
    a. open the Windows Update Troubleshooter by clicking the Start button, then Control Panel.
    (b) in the search box, type troubleshooting and then click Troubleshooting.
    c. under system and security, click Fix problems with Windows Update.

    Method 2.
    Try also download and install these updates manually and check.
    Here are links to these updates.


    An update is available for the native JSON feature in Internet Explorer 8
    http://support.Microsoft.com/kb/976662

    Method 3.
    We can try to reset the Windows Update components and check if that helps resolve the issue.
    This article helps you reset the Windows Update components. So that we can reset the Windows Update components for you, go to the "Fix it for me" section.

    To reset the Windows Update settings yourself, go to the section "Let me fix it myself".
    Please see this article for steps and additional information.
    http://support.Microsoft.com/kb/971058
     
    Problems with installing updates
    http://Windows.Microsoft.com/en-us/Windows7/troubleshoot-problems-with-installing-updates
     
    For more information and troubleshooting methods more check the items below.
    Center solutions Microsoft Update
    http://support.Microsoft.com/ph/6527#TAB0

     
     

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • MG52050 code error 5, 202, 54 with scaning

    All of a sudden, I get an error message with my scanner.  Code 5, 202, 54.

    My printer still copy and print, but will not scan. I have not changed anything. I am uing Windows 10.

    My printer is acanon MG5250

    Tried to reinstall, followed the instructions on http://community.usa.canon.com/t5/Printer-Multifunction-Support/PiXMA-MP250-scan-error-5-202-54-Prin...

    still does not work

    Oke... It's weird... I solved it.

    How? restart the pc save modus. removed the old software. reset

    Unplug all cables, installed the latest version of the software, plug in, reboot and it worked!

  • It seems that since I installed norton security 360 v3 to my vista computer that my hard drive has stopped working error code 19 something to do with the registry

    Code 19

    Description:

    Windows was able to successfully install device driver software, but the driver has encountered a problem when he tried to run. The problem code is 19.

    Signature of the problem:

    Problem event name: PnPDeviceProblemCode

    Architecture: x 86

    Hardware ID: SCSI\CdRomHL-DT-STDVDRAM_GT20N___CP02

    Configure the class GUID: {4d36e965-e325-11ce-bfc1-08002be10318}

    The PnP problem code: 00000013

    Driver name: cdrom.sys

    Driver version: 6.0.6002.18005

    Driver date: 11/04/2009

    The system version: 6.0.6002.2.2.0.768.3

    Locale ID: 3081

    Read our privacy statement:

     

    Hello again once again not good it is the message that I'm getting ideas?  Thank you, Rob

    Hello husa58,

    Equip your Vista OS dvd, see below:

    To help resolve this problem, use the tool (SFC.exe) System File Checker to determine which file is causing the problem and then replace the file. To do this, follow these steps:

    1. Open an elevated command prompt. To do this, click Start, click principally made programs, Accessories, right-click guest, and then click run as administrator. If you are prompted for an administrator password or a confirmation, type the password, or click allow.
    2. Type the following command and press ENTER: sfc/scannow (Yes there is a space after sfc) the command sfc/scannow. analyzes all protected system files and replaces incorrect versions with appropriate Microsoft versions.

    Hope this helps you. Let us know anyway. Make it a great day!

    "And in the end the love you take, is equal to The Love You Make" (The Beatles last song from their latest album, Abbey Road.)

  • Device base system & coprocessor problem with driver Windows 7 - Pavilion dv9720us

    I have a HP Pavilion dv9720us which was very glitch with Vista 32 bit.  After saving all on an external hard drive from Seagate Replica, I did a clean install of Windows 7 64-bit.  Everything seems to work, but I get error messages stating that the x 2 Base system device is not working because it doesn't have the correct driver, the coprocessor is also mentioned as not having not the correct driver.  All 3 of these devices are listed in the other devices category in Device Manager.   In addition, my laptop has 4 GB of RAM and still Windows 7 recognizes only 2 GB.  Help!  I deliberately enhanced to reduce the glitchy Vista answers. I could go on Windows 7 32 bit, but I don't know who's going to solve all my problems.

    Thank you very much!

    Kathy

    Remove your Ram and install it again.

    Notes:

    1. ensure that, then you have no battery or ac adapter connected to your laptop.

    2 Manufacter installed in this model 2048 MB of Ram (2 GB), so if you have not added 2 GB on your own all is ok.

    There will always be problems and your really have 4 GB:

    You check Ram with Memtest86 + or GoldMemory. Just burn it on CD *.iso file and run the test. You may need to change the boot sequence in the Bios (to get the BIOS press F10 boot).

    Message edited by Daniel_Potyrala on 10/30/2009 12:57
  • error code 12 in Device Manager with graphics card intel HD.

    I buy a system with the following specifications.

    Win 7 ultimate 32 bit
    with intel motherboard DH61WW

    When I install the drivers for the graphics card, I got error in the management system saying code 12
    "This device cannot find enough free resources that it can use. (Code 12)

    If you want to use this device, you will need to disable one of the other devices on this system. »

    I have the latest version of the driver software

    Thank you Sir,

    I solve the problem by myself...!
    There was a reader of "AMD 3gIO filter" problem is a conflict I do system restore and install the new driver successfully...

Maybe you are looking for

  • SuperDrive drive broken don't Boot Camp Windows at El Capitan

    I tried many schemes proposed in this forum and at least a dozen different ways to do El Capitan boot camp Windows. I have run csrutil disable recovery and used the utility gdisk to rewrite the workout plan to use GPT.  It seems to go as far as the i

  • no paypal in Germany?

    Hello, why we can not use "paypal" in Germany? I do not use the itunes store until it works again! Please fix it, or I change my Android smartphone... Greetings schadeschade

  • Videos in Firefox always low however

    On YouTube and other video sites, videos are always much lower then in Internet Explorer and Chrome.An animation I made is a good example of this: https://www.youtube.com/watch?v=0OlrLzNj4z0In Firefox, the contrast is too low... or black is bleached,

  • WMP11 does not recognize USB drives

    I have 2 laptops, the two Vista running. Both have WMP 11. We recognize USB drives in WMP11 and allows playlist to copy to them. The other laptop recognize USB drives (I have a variety of brands and sizes) in Win Explorer, will play the music of thei

  • Windows Live Photo Gallery has a save as option?

    With the help of the life of Windows Photo Gallery There is not a function "save under" in this program? I scan several photos at once in my computer and you need their harvest in separate images, but to lose the original image, when I try to save th