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


ADVERTISEMENT

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 :: 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 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 :: 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

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

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

Programming :: Unix Programming - Single Process That Does Not Start Up Any Other Threads

Sep 28, 2010

i want a process that can operate as both a TCP echo server and a UDP echo server. The process can provide service to many clients at the same time, but involves a single process that does not start up any other threads.

View 3 Replies View Related

Programming :: How To Start Programming

Nov 10, 2010

How do I start programming ubunt. c++. beginner know. What language is good that I can also design the site I use.

View 1 Replies View Related

Programming :: Should I Start With C Or C ++

Nov 4, 2010

I'm going to start programming in Linux.Should I start programming with C or C++ ?Which one is better to start learning ?And where can I get best practice to learn myself.

View 14 Replies View Related

Ubuntu :: Getting A Start On Programming

Jul 9, 2011

I'd really like to learn to program and develop in C or C++, but I have no idea where to get started. I thought Python might be easier so I tried reading the manual, but it was all these sub-directories and interpreters that I had no idea what they were talking about.

View 8 Replies View Related

Programming :: How To Start My Script

Jun 11, 2011

I want to make a script to ssh to remote machines(hostnames are provided in a serverlist) and grab meminfo, cpuinfo, etc.I am not 100% sure how to start my script? Should i use a for loop, while loop?

View 11 Replies View Related

Programming :: How To Start Program

Dec 20, 2010

I want to make alarm(buzzer) and Lamp(led) to work from infrared sensor output via usb.When ir sensor detect motion it will make the alarm&lamp on. Then also sending mail. Im using pic 18f2550-1/sp(usb Fsio from km2.net).But i dont know how to start the program.

View 2 Replies View Related

Programming :: Check If $var Is Not Start With 0

May 25, 2010

I need to check if $var is not start with 0

Code:
read var
if [ $var IS NOT START WITH 0 (or something like 006077) ];then echo 'Good'

View 15 Replies View Related

Programming :: Start Script Automatically?

Feb 21, 2011

I don't know if this the right section but in anycase the question is:- I made a script containing a never ending loop doing : sleep X then command Y', the problem is:can I start this script from init.d without the effect of blocking forever the boot process ?Or is better to insert a specific entry in inittab ?

View 5 Replies View Related

Programming :: How To Start Script Externaly

Mar 16, 2010

I have a very specific problem/question?

I have CentOS 5.4 distribution. I use this linux as webserver (apache/php/mysql).

What I want to do is to start a linux shell script with webbrowser trough php. Is it possible? What do you think?

View 1 Replies View Related

Programming :: SED - Keeping Start Of Line, But Drop The End?

May 3, 2010

I have a script that writes the following type lines to a file. The lines include some html tags. Here is an example:<p>Total = 5</h2></b></center>I want to keep the <p> tag, but remove the ending 3 tags. Sometimes the line can have a 1, 2, or perhaps a 3 digit Total. So I could have a Total = 125.Anyway, after the removal of the ending tags the result would be:<p>Total = 5There are some lines in the file that end with </h2></b></center> that I want to keep. These lines looks generally like this:

<p><b><center><h2>Events Summary for Sun May 02 2010</h2></center></b>

As you can see I am using sed to change the beginning and end of lines to make a very simple web page.The file actually displays ok in a browser with the extra tags on the end, but it is just sloppy work to have these unneeded tags in the output file.

View 2 Replies View Related

Programming :: Have Several Scripts In /etc/rcS.d/ Directory Which Are Required To Run On Start Up

Sep 20, 2010

I have several scripts in /etc/rcS.d/ directory which are required to run on start up.Now I have written a new script, and I want it to be run during the system start up itself (Not in any runlevel). SoI have given the default start as,# Default Start :SBut when I use the command : "update-rc.d test_script.sh defaults".....it is creating symbolic links to/etc/rc0.d /etc/rc1.d ..../etc/rc6.d.But I actually need a symbolic link in the /etc/rcS.d/ directory.Is there is any way to achieve this ( I tried manullay creating a link in /etc/rcS.d, but that is not running the script on system start up).

View 1 Replies View Related

General :: Get Start With Graphics Programming In C Under System?

Jun 24, 2010

Can anyone tell me how do i get start with graphics programming in c
under linux..

View 3 Replies View Related

Programming :: How To Start/stop Squid Service Using PHP

Oct 21, 2009

Im using PHP and Sun Solaris to do something for Squid Proxy Server. im using......

- LAMP / SAMP
- Linux / Solaris 10
- Squid Server
- PHP

actually i need to know that someone knows about how to start/stop Squid Service using PHP code.

View 2 Replies View Related

Programming :: Newbie To Start Driver Development?

Mar 14, 2010

I want to know where to beging with I want to start Device driver development.Any good link or book.

View 4 Replies View Related

Programming :: Popup A Dialog On Application Start?

Apr 6, 2011

Anyway, here is something that is puzzling me and cannot think up a good way around it: I call the constructor and show elements of LoginDialog in the constructor of my QMainWindow, like this:

PHP Code:

MainWindow::MainWindow(QWidget *parent) :    QMainWindow(parent),    ui(new Ui::MainWindow){    ui->setupUi(this);    LoginDialog *lid = new LoginDialog(this);    lid.show();} 

LoginDialog is a QDialog and it does show up on application start... but...
It is not active! The QMainWindow is the active window, even if I put lid->activateWindow();

So, the question is: how do I pop up this dialog on application start in such a way that it will show the LoginDialog on startup as active window?

View 4 Replies View Related

Programming :: Have Sqlite3 Headers And Start Using In Programs?

Sep 10, 2010

I'm new to database programming but I'm working in a project that makes use of sqlite3. I know I should #include <sqlite3.h> but it is not there.... i have just sqlite.h. can anyone tell me what to do to have the sqlite3 headers and start using them in my programs

View 9 Replies View Related

Programming :: Why Fork Is Executing The Program Twice From Start

May 25, 2011

I am learning about OS and I wrote this simple forking program... Here's the code..

Code:
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>

[Code].....

How can it print the first statement, that is BEFORE the fork() statement twice?

I am running Natty 11.04 btw..

View 8 Replies View Related

Debian Programming :: Automate Command Line At Start-up

Jan 26, 2015

I'm trying to automate two command lines, a synclient and a syndaemon. They both work well if I type them manually in a terminal, but if I do a littre script to do this, tap to click and scrolling don't work anymore.

This is the script I wrote:
Code: Select all#!/bin/bash
synclient VertEdgeScroll=1
syndaemon -d -t -K
exit 0

So I made a chmod +x on the file, placed it in ~/bin then change PATH to include the directory. Then I added this file in "Startup applications".

The scripts run ok, mais it has a different effect than if I run the commands manually.

View 10 Replies View Related

Applications :: Getting Ready To Start Programming / What's Good Program To Use

Jan 20, 2010

I was wanting to know what's a good programming suite that is comparable to MS Visual C++. I'm also curious about the portability of something I make in Linux, can I make a program in Linux and import it over to Windows, and what would be involved in making it compatible?

View 3 Replies View Related

Programming :: Bash Script To Start Gnome Terminal?

Apr 8, 2010

I want to write a bash script which can open a new gnome-terminal window.
In that gnome-terminal window, it should goto a specific directory and edit a file using Vi Editor.

How is it possible to do that?

View 7 Replies View Related







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