Advice in Creating applications


 
Thread Tools Search this Thread
Top Forums Programming Advice in Creating applications
# 1  
Old 03-23-2012
Advice in Creating applications

Hello friends , this is not a thread i wanna your advice

I have good knownledge in c language and i can create test based applications

But now i wanna create Graphics application for Linux and windows

In linux , i know there is gtk programming for grahics

and in windows windows.h header file defines these graphics stuff

But now i am confused , firsly i wanna to learn how these graphics work with video driver and how video adapter control these stuff

From where i can start learn about graphics

Please give me any advice .
# 2  
Old 03-23-2012
In essence, the monitor becomes nothing but a big block of memory where each block of 4 bytes represents one pixel. Set the right block to 0xffffffff, and one pixel turns white. The memory's in the video card, not the monitor, but the monitor's contents and the video memory's contents are directly related.

In practice it's a little less direct than that. With all the interrupts and context switches and such happening all the time, if you tried to write to video memory directly all the time, it'd look like junk -- you could never guarantee you'd be able to keep up with the screen, and would see half-done updates and tearing all the time. So they put extra memory in the video card for you to write to without altering the screen, and can rapidly tell the video card "okay, this area of memory's ready, show it next frame".

Dealing with a window manager makes it even more complicated because now you're only allowed to write to part of the screen, and other windows might be sitting on top of yours. Still, it ends up working much the same way, with the video driver and window manager handling the complicated bits of which bytes go where on the screen, you just write to your own little buffer.

libSDL is a nice interface library which lets you use fairly raw video the same way in Windows and Linux and many other operating systems. I wrote SDL_plattest using it, check out raster.c.
# 3  
Old 03-24-2012
Thanks corona it is working and intersting in creating graphics application

it is working greatly in linux

but in windows it is not working with any compiler .

i tried this library in windows with mostly all compilers, code block,dev-cpp,visual c++ .
# 4  
Old 03-26-2012
In what way is it "not working"? I know of no software which prints the error message "not working".

Programmers put more detailed error messages in there to help you and me, since we cannot see your computer from here; we don't know what you did, and don't know what error you got. I don't even know what code you were trying to compile. At best I can make wild guesses. Here's my wild guess:

Nearly any Linux comes with SDL preinstalled(you probably still had to install sdl-devel) but you'll have to download it from the site I linked it to you on -- libsdl.org -- for it to work in Windows, and give your compiler the right paths to use it(or just make blind copies into the right places for each project). There also tutorials on the SDL site on how to use it in many OSes.

Last edited by Corona688; 03-26-2012 at 02:24 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Creating a .profile, displaying system variables, and creating an alias

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Here is what I am supposed to do, word for word from my assignment page: 1. Create/modify and print a... (2 Replies)
Discussion started by: Jagst3r21
2 Replies

2. Shell Programming and Scripting

Need Advice

Guys, Can you tell me what value would additional knowledge of PERL and CGI scripting will add to my skill set of UNIX shell scripting and ORACLE PL/SQL? I understand that PERL is a good tool for text processing. (1 Reply)
Discussion started by: yabhi_22
1 Replies

3. Ubuntu

Creating livecd with custom applications installed

Hi all, I recently started using ubuntu. I have studied available documentation to set up the live cd on ubuntu site. But can't seem to find what I am looking for. I have few applications - www and local applications - which I want to be present on the live cd. How can I create a livecd... (2 Replies)
Discussion started by: morningSunshine
2 Replies

4. Shell Programming and Scripting

help needed with creating challenging bash script with creating directories

Hi, Can someone help me with creating a bash shell script. I need to create a script that gets a positive number n as an argument. The script must create n directories in the current directory with names like map_1, map_2 etcetera. Each directory must be contained within its predecessor. So... (7 Replies)
Discussion started by: I-1
7 Replies

5. Red Hat

Any advice would help

Hi everyone. I must admit up front that I am not very strong when it comes to Linux. I am actually a Windows guy, but don't let that count against me. :) I work for a very small company so we do not have a Server/Linux Admin on staff. Most of our needs have been handled by our WebHost. We have... (2 Replies)
Discussion started by: liquidstyleb
2 Replies

6. UNIX for Dummies Questions & Answers

need advice

i am currently running windows vista home premium, i want to install unix because i just started a computer programing course, i am just wondering if i install unix will i still have vista?? how does it work? will i get a choice of which os to run on system startup?? (1 Reply)
Discussion started by: naner9
1 Replies

7. Shell Programming and Scripting

looking for advice...

Hi. First of all, Im an msoft guy, and when it comes to linux/unix, I'm retarded. Here is what I'm trying to do. I want to start I want to automatically connect to a remote server. Then I need it to login(https) -insert the licensce in the box(vi) -based on that licensce, the... (1 Reply)
Discussion started by: bravo24601
1 Replies

8. Shell Programming and Scripting

Career advice

I am new to scripting and I need some direction on which language to learn. Can you please advice and which skill is very marketable career wise.Thanks in advance. (1 Reply)
Discussion started by: etcman
1 Replies

9. UNIX Desktop Questions & Answers

Looking for some advice

I am looking for some advice on wether to use unix or red hat linux? I have played with most windows OS and Mac OS up to in and including OS X. any and all advice would be appreciated (4 Replies)
Discussion started by: justawind
4 Replies
Login or Register to Ask a Question