Programming :: OpenGL (non-GLUT) On OSX Lion Using C++

Jul 25, 2011

I'm looking for some sample C++ code that uses OpenGL on XCode 4.1 for OSX Lion. All I have found so far are GLUT and/or Objective-C samples. Has anyone come across something similar to what I'm after? I really just need something simple that allows me to open a window, or start in fullscreen.

View 1 Replies


ADVERTISEMENT

Programming :: OpenGL And GLUT In Fedora 12: Windows Too Small And Don't Resize

Mar 15, 2010

I have verified using yum that I have the most uptodate glut, freeglut, freeglut-devel etc., yet when I compile Example 2-6 from the Red Book at http://www.glprogramming.com/red/chapter02.html#name16, I get a window that is too small for the program output, includes display from other windows, and will not redraw after being resized.

I get slightly better behavior with the SGI sample program mentioned in the same book, 'checkers.c'. Again, the initial size is too small, but at least it will resize and redraw the checkerboards entirely inside the resized window. What is going on here? Is this some bug in glut? I can't see anything obviously wrong in their glut initialization, which looks like:

int main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize (350, 150);

[code]...

Then again, since I am such a newbie to glut, I am not sure I would recognize what, if anything, they did wrong. what ARE the valid and useful command line parameters I could have passed to the main() above?

View 12 Replies View Related

Slackware :: GLUT: Fatal Error In Torcs-bin: Failed To Create OpenGL Rendering Context

Jan 15, 2011

I have installed torcs (using sbopkg) and the dependencies plib, OpenAL, and freealut. On running it I get

Quote:

GLUT: Fatal Error in torcs-bin: failed to create OpenGL rendering context.

I am not sure if it is relevant but this is xorg.conf

Quote:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder62) Tue Jul 28 19:48:57 PDT 2009
Section "ServerLayout"

[code]....

View 9 Replies View Related

Programming :: 3D Programming - Difference Between JOGL And C++ OpenGL Programming?

Aug 27, 2010

I am interested in learning 3D programming. The thing is, I would hate to put too much effort to learn something that doesn't have future and is dying. My favorite language at the time is Java. My goal is professional programming.

So I have several questions:
1. Should I learn JOGL or start learning C++ and do C++ openGL programming?
2. Is there a big difference between JOGL and C++ openGL programming?
3. Is it worth to learn openGL? Does it have a future?
4. Is it a big difference between openGL and directX coding?
5. If choosing Java, then JOGL or LWJGL?

Why and what is the main difference between them?

View 4 Replies View Related

Fedora :: Wine/opengl/32 To 64 Bit - Cannot Load OpenGL When Try To Start WoW

Oct 19, 2009

I just upgraded from FC8 (32-bit) to FC11 (64-bit). In doing so, I backed up my entire World of Warcraft folder so I could try to avoid having to download and install it all over again. However, I've now reinstalled wine (64-bit now), and the nvidia drivers from the rpmfusion repos (also 64-bit), and when I try to start WoW, it says it cannot load OpenGL. I'm wondering if anyone knows what's up, and if there's a solution that doesn't involve reinstalling WoW.

View 7 Replies View Related

Programming :: GTK DrawArea - Possible To Use OpenGL?

May 30, 2010

I am writing a program that needs to display graphs. Right now I am using Cairo which works well except it is really slow. Drawing 1200 lines locks up my computer (i7 CPU and gtx285 graphics card). I only found examples to use Cairo with GTK DrawingArea can I use OpenGL instead or is there a way to cairo to run faster?

View 1 Replies View Related

Debian Programming :: Cannot Get OpenGL Version

Feb 28, 2014

Running under Debian oldstable:

#include<stdio.h>
#include<stdlib.h>
#include <GL/glew.h>
#include <GL/glext.h>
#include <GL/glut.h>
void init(){
const GLubyte* version = glGetString​(GL_VERSION​); // line 2338
printf("version = %s
", version);
...

The gcc compiler gives me:

code.c: In function ‘init’:
code.c:2338: error: stray ‘342’ in program
code.c:2338: error: stray ‘200’ in program
code.c:2338: error: stray ‘213’ in program
code.c:2338: error: stray ‘342’ in program
code.c:2338: error: stray ‘200’ in program
code.c:2338: error: stray ‘213’ in program

Do I need an additional header?

View 4 Replies View Related

Programming :: Difference Between Xlib And OpenGL?

Dec 6, 2008

I am starting to learn Linux graphical programming. Most of codes in my hands were written based on xlib, which is a kind of old graphic lib. I see some developers more interested in openGL. Then what's the difference between xlib and openGL? And which one is more popular used in which industry area?

View 2 Replies View Related

Programming :: Start Programming Using OpenGL?

Sep 1, 2010

I want to start progrmming in opengl. I am using Ubuntu. do I need just to install a GLUT package.if yes how to do it

View 5 Replies View Related

Programming :: Maintain A Cross Platform SDL/OpenGL Project?

Feb 11, 2011

I have made a game for Linux and want to release it soon (on linux & windows). Since its SDL/OpenGL and I dont do any special things it shouldn't be much porting to windows. Problem: Maintaining I have the game in code::blocks SDL project on Linux. So I got wine and installed wined Code::Blocks with MingW so I can cross compile on Linux. For another game I made, I used a Makefile which has "if" statements to set up compile variables. And everything else is totally identical to windows & linux (code, source files and etc...)

With codeblocks I got used to not having to worry about makefiles and it did well and I better focused on making the game rather than everytime a new file is added editing the makefile and etc... Is there some nice ways to have a cross platform environment to make it easy to make games for Linux and windows. I'm thinking of making my own system of auto-generating a makefile (essentially upgrading the setup I have for my previous game to auto add entry's to the makefile & some other stuff).

View 2 Replies View Related

Ubuntu Installation :: Can't Get On OS X Lion

Jul 30, 2011

I really want to use ubuntu, however, I can't get it to install at all. I've tried installing it in VMware, then I tried to run a dual boot via bootcamp. The final error it has come down to was "unable to find a medium containing a live file system" To clarify, I have a Macbook Pro 15"/2GHz Intel Core i7 / version 10.7 (OS X Lion) I've tried EVERYTHING!!! Even using redit to boot from the live CD. I don't even get pass the command screen. I'm starting to believe that this is a bug in Ubuntu 11.04 that causing problems with OS X Lion. I've researched researched and researched to no avail.

View 1 Replies View Related

Debian Programming :: OpenGL Version Verification - Compiler Error

Feb 5, 2015

I have moved from MS directX to OpenGL on Linux Debian. My computer is running Jessie version with Gimp. I am trying to use several of the gl 4.0 functions but getting compiler error. I check for OpenGL version and appears to be version 1.5 .... How can I verify the correct openGL version and how can I upgrade to a moder version of at least 4.0?

View 4 Replies View Related

Ubuntu / Apple :: Mac Won't Boot Lion Or It

Aug 2, 2011

I tried installing ubunutu on my macbook pro (7,1 I believe, with lion 7.2 installed) today and ended with result of a nonbooting computer, the ubuntu partition won't boot either! I'll try to explain all the steps.

1. I first installed rEFit.
2. Next I booted from a burned copy of the latest release of ubuntu on a dvd.
3. I created a partition of 5120 mb from the freespace on my harddrive, I made sure to leave the mac partition intact.
4. I finished the install, it said to ejct disc and hit enter, I did, the computer froze. I ended up having to hold the power button.
5. The computer just showed a white screen. It wouldn't boot to the rEFit screen or anything. It just resulted in falling back to lions recovery partion. Disc utility couln't verify ubuntu's or lion's partitions.

View 2 Replies View Related

General :: Check If Have Glut.h Installed?

Mar 31, 2011

os: fedora 9how do i check if i have glut.h installed?actually,i tried to run graphics programs in KdevelopC/C++ ,i included the line#include<GL/glut.h>and it shows an error at all functions including glut functions when i compiled it.also i have gone to project->project options->configure options->linker flags->-lglut

View 2 Replies View Related

OpenSUSE Network :: Netatalk 2.2 And Mac OS X 10.7 LION - Cannot Connect To 11.4 Box

Jul 30, 2011

I blindly upgraded my Mac OS X machine to Apple's newest OS version: 10.7 Lion. Unfortunately they upgraded their AFP implementation in such a way that now I cannot connect to my opensuse 11.4 box. However, that is quite essential for my TimeMachine backup to run over the network. Also, I can't quite go back to using samba for this because then timemachine will corrupt its own backup after a while. I tried NFS once, but that went a little over my head.

After a some googling, I came accross this blog that suggested a solution. I followed those steps, and behold I was even able to get the whole netatalk 2.2-beta4 thing to build correctly. However I couldn't get the afpd to run properly, since

Code: /etc/init.d/netatalk start did not seem to start the daemon in such a way that it actually opened a port (well, the latter is just a guess - os x told me it couldn't connect to the specified server, rather than that the server version was incorrect) Log-files didn't provide anything useful, and essentially I'd prefer it if I could install v2.2 via yast, rather than leaving traces of improperly configurated software all over my system.

The default OSS repository contains Netatalk 2.0.3. I need version 2.2. I've also been looking around the buildservice, but all i could find was a bunch of failed projects...

View 1 Replies View Related

Ubuntu :: Permission With Netatalk 2.2~beta4-0~ppa1 And Apple Lion OS 10.7

Sep 1, 2011

With Apple OS 10.6.* I was using samba for a network time machine with my natty box (mythbuntu) when 10.7 came out I had to change over to AFP. I am able to get the machine to do back ups, however when I try to enter the Star Wars screen, the network drive mounts, and nothing happens. I don't get any errors. I can go into my Time Machine folder, and I can see Backups.backupdb, I go in there and I see <mymachinesnetworkname>, but when I try to go into that folder I get permission errors. In terminal on the mac as sudo su - I see...

[Code]...

View 2 Replies View Related

General :: Fullscreen GLUT App Display Blanks After Approx 30 Minutes

Apr 6, 2010

I'm running a fullscreen display app which shows a 3D scene in OpenGL. The app runs continiously throughout the day unattended.

Here's the sequence of events in how it's loaded:

1) The computer is turned on, and boots into F11 (x86_64)

2) A non-privileged user is automatically logged on

3) The gnome startup applications list contains an entry for a loading script

4) The loading script waits for the network interface (eth0) to ccome up, then starts the display program

This all works just fine, except that about 30 minutes after the computer is turned on and the app starts running, the screen blanks out. Attaching a mouse to the system and moving it around a bit brings the screen back to life. Likewise, SSHing into the machine and killing / restarting the application works as well. Once either of these fixes has been performed, it runs flawlessly for the rest of the day.

I have turned off the screen saver, and set the power settings for monitor shutdown to 'never'.

View 2 Replies View Related

Server :: Use OpenGL Without X?

Sep 3, 2010

I have an OpenGL app that generates images by rendering into an off-screen surface. I'd like to get it running on our Linux server, but the only way (that I know of) to initialize an OpenGL context is to create an X window and pass it to glX.

This is lame since I don't need any windows - just a render buffer. Is there any way I can get an OpenGL context on this server?

View 1 Replies View Related

Debian Multimedia :: OpenGL Over Vnc

Jan 4, 2016

I have a tightvnc server running on my computer and have my IPAD using a vnc client to connect to it. Everything works fine except for apps that require openGL (eg: minetest,steam). I was wondering how I could use said apps over vnc.

View 11 Replies View Related

General :: OpenGL Benchmark (nothing Seemed To Run At All)?

Jun 1, 2011

I'm looking for an OpenGL benchmark tool for Linux. Something sort of similar to 3DMark on Windows. Is there anything at all? I tried Phoronix, was not impressed (nothing seemed to run at all).

View 1 Replies View Related

Ubuntu :: Get OpenGL Running On 10.04 (64 Bit)?

Jun 30, 2011

New here so please go easy. I am trying to get OpenGL running on Ubuntu 10.04 (64 bit). The hardware is a Dell box with a NVidia Quadro 600 graphics card; I am also running under VMware.

I tried using "apt-get install nvidia-current", followed by "nvidia-xconfig", which told me a new xorg.conf file had been written. I then rebooted. A dialog appeared saying Ubuntu is running in low-graphics mode and that it had failed to load module "nvidia" and no drivers available.

As I didn't seem to get very far this way, I tried downloading the NVidia 64 bit linux driver version 275.09.07 and ran this from the console. Firstly it told me that I do not appear to have a NVidia GPU supported by this version of the driver (yet NVidia's description of the driver says it does support this gpu). I went ahead and let it try to build the kernel module but then it failed with the message "failed to load kernel module 'nvidia.ko" I'm not clear how to proceed on this one. Has anyone else got a Quadro 600 card to work? If so, how?

View 4 Replies View Related

Red Hat / Fedora :: Install OpenGL ?

Feb 28, 2011

I'm trying to put the geant4 program on my computer and I need to install openGL first. I need the glut.h file and gl.h file in order to do this but I can't seem to find them anywhere online. I am using Fedora 14.

View 2 Replies View Related

Fedora :: Checking If OpenGL Is Working?

May 31, 2010

I'm trying to get a program to compile with OpenGL support and it's saying that the headers are missing. But I think (or thought!) that I already had Open GL up and running. My suspicion is that I need to install the appropriate -devel files...but I just can't seem to find them. Furthermore, I don't want to tweak my system and install proprietary Nvidia drivers if things are already working just fine.

I have a Geforce 8300 GS in a i586 32bit Dell Inspiron 530. I'm trying to compile Cinelarra and keep getting:

Quote:

OpenGL 2.0 libraries missing Hardware acceleration using OpenGL 2.0 is disabled

Does anyone know which driver (ie: 96xx? 173xx?) I should be using for this? Where are these libraries? How can I find them and tell Cinelarra where to look?

And even more basically: How do I tell if OpenGL is working or not? Maybe I don't have them afterall..

View 6 Replies View Related

OpenSUSE :: Cannot Access OpenGL For Compiz

Feb 26, 2011

Code:
Failed to activate desktop effects using the given options. Settings will be reverted to their previous values.

Check your X configuaration.

You may also consider changing advanced options, especially changing the composting type. I cannot use OpenGL, hence my Compiz is useless.. I have ATI 5850s

View 3 Replies View Related

Ubuntu :: Opengl Rendering Is Not Continuous?

Mar 27, 2010

I have openGL working fine on my system.The only problem is that when I try to run the executable file, nothing appears unless the full scene has been rendered.In fact, it appears in parts, i.e. updates after a second, then after another second etc...However, earlier, the rendering used to be continuous and I could see each pixel getting rendered in a continuous fashion.

View 3 Replies View Related

Ubuntu Multimedia :: No OpenGL After 10.04 Upgrade?

May 1, 2010

I just upgraded to 10.04 on my Dell optiplex GX280 and now OpenGL isn't working (xbmc and cairo dock won't start). Here are the (i think) relevant lines from lspci:

[code]....

View 9 Replies View Related

Ubuntu :: OpenGL Apps Don't Work?

May 23, 2010

Whenever I try to start an OpenGL app in the terminal, I get a message to the point of "could not create GL context." It was working until around the last update. I know it's not a hardware problem because my windows partition works as well as ever.

I'm using Hardy Heron with the closed Nvidia driver with a Geforce 9800gt
'glxinfo | grep OpenGL' gives

Code:
Error: glXCreateContext failed

View 2 Replies View Related

Ubuntu :: Unable To Open OpenGL

Sep 17, 2010

I'm trying to run a program called Alice 3.0. When I load the program, it crashes at the splash screen. I ran it in terminal, and this is the error message I received:

UNABLE TO LOAD OPENGL The most common reason for this is an incorrectly set Java library path. Please update your VM arguments. The text below has been copied to the clipboard for your convenience. Linux-i386

all properties
--- ----------
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>

[code]...

View 8 Replies View Related

Ubuntu :: CMake Can't Find OpenGL?

Oct 4, 2010

I'm trying to install Kicad from source but cmake gives me an error:"- Check for installed OpenGL -- not foundCMake Error at CMakeModules/CheckFindPackageResult.cmake:6 (message): OpenGL was not found - it is required to build Kicad "I have an Nvidia video card with the proprietary drivers installed.I also have glut, (glutg3) installed.I don't understand why cmake can't find OpenGL.

View 9 Replies View Related

Ubuntu :: OpenGL Is Not Working On Installation?

Oct 17, 2010

OpenGL is not working on my installation. I'm completely new to Linux and have been trying to get it to work for hours, but whatever I try, it just doesn't work. When I try to load java applets which use OpenGL, the applet crashes with this error:

Quote:
# A fatal error has been detected by the Java Runtime Environment:
# SIGSEGV (0xb) at pc=0xb7895424, pid=3239, tid=1586695024
# JRE version: 6.0_22-b04
# Java VM: Java HotSpot(TM) Server VM (17.1-b03 mixed mode linux-x86 )
# Problematic frame:

[Code]...

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved