Sponsored Content
Full Discussion: 2D Graphics Lib
Top Forums Programming 2D Graphics Lib Post 302238473 by nasersh on Saturday 20th of September 2008 08:10:47 AM
Old 09-20-2008
2D Graphics Lib

Hi,
I am on Fedora9 and need to do some simple 2D graphics (for game development). I am looking for an ideal 2D library/package to be used with GCC.

I have come accross GRX, libmxi and some OpenGL (The 3D), but none of which seems to be ok.
I could not find any tutorial or support material for GRX; libmxi seems to be obsolete too; and OpenGL is not pure 2D.

Please advise.
 

9 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

Graphics And Animation

DOES ANYBODY KNOW WHY C OR ANY OTHER UNIX LANGUAGE IS USED IN THREE DIMENSIONAL ANIMATION AND RENDERING (5 Replies)
Discussion started by: aloysius1001
5 Replies

2. UNIX Desktop Questions & Answers

Graphics programing

Hi all! I`m new in Unix (Linux) and i whant to ask something! What language should i use for Linux developing.I meen applications an GAME DEVELOPING! Should i use C,TCL ??? Please help me on this ...:( (1 Reply)
Discussion started by: Sebastyan
1 Replies

3. Programming

Graphics libraries

I want to know if under Linux there are some graphics libraries and/or functions for using simple graphics in the 'console' screen. For example with MS-DOS (when I was using Borland Turbo C++ v1.01, a very old version) there was the include file <graphics.h> that allowed to enter the graphic... (1 Reply)
Discussion started by: robotronic
1 Replies

4. Programming

graphics commands ? ? ?

Graphics in UNIX :D well how to include "graphics.h" header file ? how to make the text output in colour in sh programming. please feed in back ....... thanking you alll imma (2 Replies)
Discussion started by: immanuelgangte
2 Replies

5. Ubuntu

graphics drivers

ok, right off the bat im going to say this, i know that there is about over 100 links on google for this, just none of them help me. i have a radeon mobility 7500 graphics card. and i want to enable the compiz effects via Administration/preferences/Appearance. the problem is that i can't get the... (12 Replies)
Discussion started by: Texasone
12 Replies

6. Red Hat

ls: /lib/libattr.so.1: no version information available (required by /lib/libacl.so.1)

Hello, I'm experimenting a problem on my rh server. Red Hat Enterprise Linux AS release 3 (Taroon Update 8) 2.4.21-47.ELsmp #1 SMP i686 i686 i386 GNU/Linux It started with a segmentation fault on #id root To resolve it, I've installed coreutils-4.5.3-28.4.i386.rpm But, I... (6 Replies)
Discussion started by: gogol_bordello
6 Replies

7. Solaris

X86-Graphics problem

An X86-based laptop has just had Solaris 10 os. The graphics config has not been automatically detected and it is running without graphics. Which two programs can i run to creat an Xorg configuration file. (3 Replies)
Discussion started by: narep3
3 Replies

8. High Performance Computing

Graphics cards

More and more applications which consist of computationally intensive tasks rely on the graphics card's capabilities in order to speed up the calculations. The question is how can one know whether the graphics card will have any influence for a proprietary application? (2 Replies)
Discussion started by: figaro
2 Replies

9. OS X (Apple)

[Solved] links2 --enable-graphics from source, configure error: no graphics driver found.

Howdy I am trying to install links2 with graphics support on snow leopard 10.6.8 (xcode installed). I have had the program running last year, also installed from source - but then I had installed some image libraries with mac ports and fink - cannot reproduce that setup. Plus I would like to not... (6 Replies)
Discussion started by: butterbaerchen
6 Replies
XSetLineAttributes()													      XSetLineAttributes()

Name
  XSetLineAttributes - set the line drawing components in a graphics context.

Synopsis
  XSetLineAttributes(display, gc, line_width, line_style,
	    cap_style, join_style)
	Display *display;
	GC gc;
	unsigned int line_width;
	int line_style;
	int cap_style;
	int join_style;

Arguments
  display   Specifies a connection to an X server; returned from XOpenDisplay().

  gc	    Specifies the graphics context.

  line_width
	    Specifies the line width in the specified graphics context.

  line_style
	    Specifies the line style in the specified graphics context.  Possible values are LineSolid, LineOnOffDash, or LineDoubleDash.

  cap_style Specifies  the  line and cap style in the specified graphics context.  Possible values are CapNotLast, CapButt, CapRound, or Cap-
	    Projecting.

  join_style
	    Specifies the line-join style in the specified graphics context.  Possible values are JoinMiter, JoinRound, or JoinBevel.  If you
	    specify JoinMitre, JoinBevel is used instead if the angle separating the two lines is less than 11 degrees.

Description
  XSetLineAttributes() sets four types of line characteristics in the GC:  line_width, line_style, cap_style, and join_style.

  See the description of line and join styles in Volume One, Chapter 5, The Graphics Context. See also XSetDashes().

  A  line_width of zero (0) means to use the fastest algorithm for drawing a line of one pixel width.  These lines may not meet properly with
  lines specified as width one or more.

Errors
  BadAlloc
  BadGC
  BadValue

See Also
  XDefaultGC(), XChangeGC(), XCopyGC(), XCreateGC(), XFreeGC(), XGContextFromGC(), XSetArcMode(), XSetBackground(), XSetClipMask(),  XSetCli-
  pOrigin(),  XSetClipRectangles(), XSetDashes(), XSetFillRule(), XSetFillStyle(), XSetForeground(), XSetFunction(), XSetGraphicsExposures(),
  XSetPlaneMask(), XSetState(), XSetStipple(), XSetSubwindowMode(), XSetTSOrigin().

Xlib - Graphics Context 												      XSetLineAttributes()
All times are GMT -4. The time now is 11:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy