Sponsored Content
Operating Systems Linux Ubuntu i am new to opengl , how to work opengl in ubuntu Post 302350146 by Ravikishore on Thursday 3rd of September 2009 12:39:03 AM
Old 09-03-2009
Error what are the different applications of OpenGL

Hi Sir,

What i meant to say is what are the different applications where openGL is Used..

I need programming(c language) examples for each applications ,,,,
 

9 More Discussions You Might Find Interesting

1. Linux

Help with OpenGL in Fedora Core 4.

I'm pretty much new to this Linux stuff, I installed FC4 the other night to try it out. I'm having a slight problem when launching Quake 3, it's giving me the error GLimp_Init() - could not load OpenGL subsystem I've updated my video drivers to the latest version and went through fglrxconfig,... (3 Replies)
Discussion started by: Filth Pig
3 Replies

2. AIX

Need to install opengl for GXT4500.

Hi, I try to install opengl bat it give a error that i need the opengl base level fileset 5.3.0.0 I use AIX 5.3 and my oslevel is now 5300-03. Where can i find the opengl files i need (5.3.0.0)? Thanks Peter. (1 Reply)
Discussion started by: xeonbb
1 Replies

3. Programming

How to compile openGL code which is in C++ in ubuntu

Hi, I am trying to compile openGL code which is written in c++ ..but i am getting error msgs like this root@lxdevenv:~/Desktop# g++ diss.cpp -o diss -I/usr/X11R6/include/ -L/usr/X11R6/lib -lX11 -lXi -lXmu -lglut -lGL -lGLU diss.cpp:1:23: error: windows.h: No such file or directory... (2 Replies)
Discussion started by: Ravikishore
2 Replies

4. Ubuntu

How to draw cylinder using openGL

Hi Sir, i am new to openGL, i want to know how to draw cylinder using openGL code in C or C++.. And i have to insert bitmap images on cylinder.. How to do this .. please guide me ... Thanking You in advance .. (0 Replies)
Discussion started by: Ravikishore
0 Replies

5. Programming

How to Decode an image using openGL

Hi, How to decode an image using openGL library libjpeg .. which are the steps needed to do this using C language.. actually my work is to decode the image, store it on the buffer, and place it on cube surface.. please guide me,,any answer will appreciated .. (8 Replies)
Discussion started by: Ravikishore
8 Replies

6. Programming

Draw a 3D cylinder using openGL.

Hi, please give me, how to code to draw 3D cylinder in openGL, that should be rotated in x-direction. waiting for your reply .. (2 Replies)
Discussion started by: Ravikishore
2 Replies

7. Programming

How to install openGL packages?

Hi, Any one help me regarding how to install openGL packages to work in linux. And i installed some of the packages(gl,glu), but i don't know whether they are installed are not .. Which command is should use to check whether openGL is installed are not .. I am Thankful for any kind of... (3 Replies)
Discussion started by: Ravikishore
3 Replies

8. Solaris

Solaris 8 and openGL

Hi everybody, Sorry to bother you one more time, but I have a problem with my Solaris 8 installation. Actually, Solaris works well, I can start X and access my desktop (CDE), but I'm having troubles using Cadds (a CAO software). Cadds works, but the 3D visualization is very slow compare to... (4 Replies)
Discussion started by: firstpost
4 Replies

9. UNIX Desktop Questions & Answers

Difference between opengl es and directfb

i dont know in which forum to ask this question ..... :( . pardon me if it is not this forum i wanted to know difference between openGL ES and directfb as far i know directfb is alternative to x11 in linux for embedded devices. something like ... application | ... (1 Reply)
Discussion started by: alexzander18
1 Replies
XtSetLanguageProc()													       XtSetLanguageProc()

Name
  XtSetLanguageProc - register the language procedure called to set the locale.

Synopsis
  XtLanguageProc XtSetLanguageProc(app_context, proc, client_data)
	   XtAppContext app_context;
	   XtLanguageProc proc;
	   XtPointer client_data;

Inputs
  app_context
	    Specifies the application context in which the language procedure is to be used, or NULL.

  proc	    Specifies the language procedure.

  client_data
	    Specifies additional data to be passed to the language procedure when it is called.

Returns
  The previously registered language procedure.

Availability
  Release 5 and later.

Description
  XtSetLanguageProc() registers proc as the language procedure that will be called (with client_data) from XtDisplayInitialize() for all sub-
  sequent displays initialized in the application context app_context.	The language procedure is called by XtDisplayInitialize() (in Release
  5) in order to determine the language string and perform whatever localization is required by an internationalized application.

  If  app_context is NULL, the specified language procedure is registered in all application contexts created by the calling process, includ-
  ing any future application contexts that may be created.  If proc is NULL a default language procedure is registered.

  XtSetLanguageProc() returns the previously registered language procedure.  If a language procedure has not yet been registered, the  return
  value is unspecified but if it is used in a subsequent call to XtSetLanguageProc(), it will cause the default language procedure to be reg-
  istered.

  Note that the "default" language procedure is not registered by default; you must call XtSetLanguageProc() with a proc of NULL to  register
  this default procedure.  If XtSetLanguageProc() is never called, XtDisplayInitialize() determines the language string by the same procedure
  it used prior to Release 5.  See XtDisplayInitialize() for more information.

  See the "Background" section below for a description of the default language procedure.  See XtLanguageProc(2) for an explanation of how to
  write a language procedure.

Usage
  Most internationalized applications should call XtSetLanguageProc() directly before calling XtAppInitialize().  The default language proce-
  dure should be adequate for applications that use only the internationalization facilities provided by ANSI-C and Xlib.

Example
  A client wishing to use this default procedure to establish locale can do so as in following example:

	 Widget top;
	 XtSetLanguageProc(NULL, NULL, NULL);
	 top = XtAppInitialize( ... );

Background
  The default language procedure does the following:

  o  Sets the locale according to the environment.  On ANSI C-based systems this is done by calling setlocale(LC_ALL, language).  If an error
     is  encountered  a warning message is issued with XtWarning(), where language is the language string determined by XtDisplayInitialize()
     and passed to the default language procedure.

  o  Calls XSupportsLocale() to verify that the current locale is supported.  If the locale is not supported, a  warning  message  is  issued
     with XtWarning() and the locale is set to "C."

  o  Calls XSetLocaleModifiers() specifying the empty string.

  o  Returns the value of the current locale.  On ANSI-C-based systems this is the return value from a final call to setlocale(LC_ALL, NULL).

See Also
  XtDisplayInitialize(1),
  XtLanguageProc(2).

Xt - Locale Management													       XtSetLanguageProc()
All times are GMT -4. The time now is 04:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy