Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-23-2006, 07:04 AM   #1
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Rep: Reputation: 32
Screen pixel manipulation?


I was recently asked by a friend if I could write him a screensaver that did something similar to an opengl screensaver - just without opengl. the basic concept was to manipulate pixels on the screen to create a wave effect.

The only thing standing in my way is that I need some way to manipulate pixels on the screen. opengl has several function for that, as "man -k pixel" revealed, but I don't seem to find any other libraries for it. Reasonably, the X-server needs to have something of that sort, perhaps even something related to ncurses (??? ).

If anybody knows what libraries I can use to accomplish this, please give me a hint.

Old 01-23-2006, 08:37 AM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Is there a reason to avoid OpenGL? If your effect is simple, it will be quite renderable on most hardware. In any case, I would think that the SDL library would provide functionality that you seek, as well as (I believe) the gtk+ and QT libraries.
Old 01-25-2006, 02:09 PM   #3
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Original Poster
Rep: Reputation: 32
The machine crumbles under any form of graphical load. I don't know the specifications by heart, but it runs xfce as GUI, and even then it is slow. The graphics involve a simulation of a rotating spiral galaxy. My firend provides me with the math, I write the program.

Thanks for the tip on sdl.

What library lies below stdio? printing characters need pixel manipulation, so unless the character printing is compiled into the kernel (as far as I know only character maps are), should those libraries not be available?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Non-functioning pixel on VAIO- Return it??? vcroww2 General 9 01-05-2006 05:07 PM
pixel pipelines? tnelson42345 Linux - Hardware 1 11-12-2005 12:25 PM
Question(s) about bits per pixel kornerr Linux - General 4 08-21-2005 02:06 AM
Pixel Stretching, and panning shamgar03 Linux - Laptop and Netbook 10 06-23-2005 12:13 AM
how was the 1 pixel wide border created...? GraemeK General 14 01-02-2004 06:48 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration