Sponsored Content
Top Forums UNIX for Advanced & Expert Users How a windowing system is implemented in C ? Post 302888497 by coolatt on Friday 14th of February 2014 02:17:47 PM
Old 02-14-2014
i read very quickly the ncurses manual.

but my question is at a much lower level how the code accesses the bare graphics card?
 

6 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Free software like proftpd or wu-ftpd implemented under SSH

Anybody can to suggest to me a ftp software like proftpd or wu-ftpd (ftp with chroot for users) implemented with tunneling under SSH. Thanks in advance. Hugo. (2 Replies)
Discussion started by: hugo_perez
2 Replies

2. UNIX for Advanced & Expert Users

What do you want to see implemented in Unix ?

Hello all, I just want to ask everyone what does he/she want to see implemented in Unix ? Applications, services, drivers, modules ? Just mention it here :) Thank you very much in advance. (0 Replies)
Discussion started by: core-ix
0 Replies

3. UNIX for Dummies Questions & Answers

X Windowing system

Hi All, I am new to UNIX. In a linux text I have seen that the display is managed by X windowing system. Please give some details about the working of X windowing system. Any help would be appreciated Thanks, Jaysamson (1 Reply)
Discussion started by: jaysamsonp
1 Replies

4. Linux

swapon: Function not implemented

Hi, Trying to add a swap file to my server as below: dd if=/dev/zero of=/swapfile1 bs=1M count=2048 2048+0 records in 2048+0 records out 2147483648 bytes (2.1 GB) copied, 27.4514 seconds, 78.2 MB/s # mkswap -c /swapfile1 Setting up swapspace version 1, size = 2147479 kB # swapon... (6 Replies)
Discussion started by: chris5126
6 Replies

5. Programming

Algorithm needs to be implemented in JAVA

Hi, I need to implement this algorithm in JAVA. I tried to write half of the code But I stopped in the other half. The algorithm: Marking procedure at router R: let R' = Bitlntereave(R, Hash(R)) let k be the number of non-overlapping fragments in R' for each packet w let x be a random... (0 Replies)
Discussion started by: ENG_MOHD
0 Replies

6. Linux

X Windowing Free Open Source Software at Windows Desktop

I am using a ssh session for my org Linux box to do all my installation work. Recently I installed a X Serve app but could not start its execution cause neither I am sure if X Server is running or not nor of how the app output (X windowing app) would be rendered on a Windows desktop from where I am... (3 Replies)
Discussion started by: uunniixx
3 Replies
gfx_mode_select_filter(3alleg4) 				  Allegro manual				   gfx_mode_select_filter(3alleg4)

NAME
gfx_mode_select_filter - Even more extended version of the graphics mode selection dialog. Allegro game programming library. SYNOPSIS
#include <allegro.h> int gfx_mode_select_filter(int *card, int *w, int *h, int *color_depth, int (*filter)(int, int, int, int)); DESCRIPTION
Even more extended version of the graphics mode selection dialog, which allows the programmer to customize the contents of the dialog and the user to select the color depth as well as the resolution and hardware driver. `filter' will be passed (card, w, h, color_depth) quadruplets and must return 0 to let the specified quadruplet be added to the list of displayed modes. As with gfx_mode_select, the values stored at the addresses passed to the function will be used as suggestions for the initial selections in the dialog, defaulting to the first entry in each list if the values are not found. Initialize the data stored at the addresses passed to the function to the value of 0 or -1 if you want to ensure that the initial selection for each list will be the first entry. If the dialog is OK'd, it stores the selections at the addresses passed to the function. Example usage : ret = gfx_mode_select_filter(&card, &w, &h, &color_depth, user_filter); if (ret) {/* User okayed dialog or user_filter removed all modes */ if (card == GFX_NONE) { // No modes available *card = 0;/* Make sure not to leave *card == GFX_NONE */ return -1; } /* Handle changing to new mode here... */ } else {/* User cancelled dialog or there was an error (unlikely) */ if (card == GFX_NONE) { /* Error, probably out of memory */ *card = 0;/* Make sure not to leave *card == GFX_NONE */ return -2; } /* Carry on in current graphics mode if that is acceptable */ } RETURN VALUE
Returns zero if the user cancelled the dialog or an error occurred. In the case of an error then *card is assigned the value GFX_NONE. The functions return non-zero if the user made a selection OR if all the modes were filtered out. In the case that all of the modes were fil- tered out, then *card is assigned the value GFX_NONE. This means you should NOT initialize the *card to the value of GFX_NONE, as it could interfere with determining the proper return value. SEE ALSO
gfx_mode_select(3alleg4), gfx_mode_select_ex(3alleg4), set_color_depth(3alleg4), set_gfx_mode(3alleg4), gui_fg_color(3alleg4) Allegro version 4.4.2 gfx_mode_select_filter(3alleg4)
All times are GMT -4. The time now is 03:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy