Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

create_sub_zbuffer(3alleg4) [debian man page]

create_sub_zbuffer(3alleg4)					  Allegro manual				       create_sub_zbuffer(3alleg4)

NAME
create_sub_zbuffer - Creates a sub-z-buffer. Allegro game programming library. SYNOPSIS
#include <allegro.h> ZBUFFER *create_sub_zbuffer(ZBUFFER *parent, int x, int y, int width, int height); DESCRIPTION
Creates a sub-z-buffer, ie. a z-buffer sharing drawing memory with a pre-existing z-buffer, but possibly with a different size. The same rules as for sub-bitmaps apply: the sub-z-buffer width and height can extend beyond the right and bottom edges of the parent (they will be clipped), but the origin point must lie within the parent region. When drawing z-buffered to a bitmap, the top left corner of the bitmap is always mapped to the top left corner of the current z-buffer. So this function is primarily useful if you want to draw to a sub-bitmap and use the corresponding sub-area of the z-buffer. In other cases, eg. if you just want to draw to a sub-bitmap of screen (and not to other parts of screen), then you would usually want to create a normal z-buffer (not sub-z-buffer) the size of the visible screen. You don't need to first create a z-buffer the size of the virtual screen and then a sub-z-buffer of that. RETURN VALUE
Returns the pointer to the sub ZBUFFER or NULL if there was an error. Remember to destroy the ZBUFFER once you are done with it, to avoid having memory leaks. SEE ALSO
create_zbuffer(3alleg4), create_sub_bitmap(3alleg4), destroy_zbuffer(3alleg4) Allegro version 4.4.2 create_sub_zbuffer(3alleg4)

Check Out this Related Man Page

create_sub_zbuffer(3alleg4)					  Allegro manual				       create_sub_zbuffer(3alleg4)

NAME
create_sub_zbuffer - Creates a sub-z-buffer. Allegro game programming library. SYNOPSIS
#include <allegro.h> ZBUFFER *create_sub_zbuffer(ZBUFFER *parent, int x, int y, int width, int height); DESCRIPTION
Creates a sub-z-buffer, ie. a z-buffer sharing drawing memory with a pre-existing z-buffer, but possibly with a different size. The same rules as for sub-bitmaps apply: the sub-z-buffer width and height can extend beyond the right and bottom edges of the parent (they will be clipped), but the origin point must lie within the parent region. When drawing z-buffered to a bitmap, the top left corner of the bitmap is always mapped to the top left corner of the current z-buffer. So this function is primarily useful if you want to draw to a sub-bitmap and use the corresponding sub-area of the z-buffer. In other cases, eg. if you just want to draw to a sub-bitmap of screen (and not to other parts of screen), then you would usually want to create a normal z-buffer (not sub-z-buffer) the size of the visible screen. You don't need to first create a z-buffer the size of the virtual screen and then a sub-z-buffer of that. RETURN VALUE
Returns the pointer to the sub ZBUFFER or NULL if there was an error. Remember to destroy the ZBUFFER once you are done with it, to avoid having memory leaks. SEE ALSO
create_zbuffer(3alleg4), create_sub_bitmap(3alleg4), destroy_zbuffer(3alleg4) Allegro version 4.4.2 create_sub_zbuffer(3alleg4)
Man Page

7 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to increase the buffer size in Unix

When I checked with top command, I found tht my buffers are always 137M, which means that they are sort of overloaded. My Inactive memory is 520M. Is it possible to increaase the buffer size and what would be the command for that? (0 Replies)
Discussion started by: ziabegg
0 Replies

2. UNIX for Dummies Questions & Answers

How to increase buffer size in Unix

The "top" command shows that my buffer size is always at 137M, which I think has reached to the maximum. However, Ido have lots of Inative memory? Is it possible to increae the buffer size? and what is the command for that? Further, this is the buffer for writing to the hard disk? (3 Replies)
Discussion started by: ziabegg
3 Replies

3. UNIX for Advanced & Expert Users

GNU screen

Hello, One of the things I like about screen is that it has a scrollback buffer, which if you go into the copy mode, will let you go back for a specified number of line. Is there a way to extend the number of scrollback lines in screen? I've looked thoroughly online and I could not find a... (2 Replies)
Discussion started by: neked
2 Replies

4. UNIX for Dummies Questions & Answers

How to check the buffer size of a file?

I have a c program and I want to know what command to use to display the current buffer size of the file using Terminal in Unix? (0 Replies)
Discussion started by: Izzy123
0 Replies

5. UNIX and Linux Applications

increase size of original KolourPaint object

I have a circuit drawing built with KolourPaint which when printed is about 1/5 the size at which it was drawn on the screen. Is there a secret squirrel trick to increase the size of the original by perhaps stretching the canvas or something like that without involving another application? (2 Replies)
Discussion started by: slak0
2 Replies

6. Programming

[c] How to calculate size of the file from size of the buffer?

Hi, Can I find size of the file from size of the buffer written? nbECRITS = fwrite(strstr(data->buffer, ";") + 1, sizeof(char), (data->buffsize) - LEN_NOM_FIC, fic_sortie); Thank You :) (1 Reply)
Discussion started by: ezee
1 Replies

7. Programming

Serialization of a char buffer

Hello, In C, is it possible to serialize a buffer, and save the buffer in a file like in java ? and how ? Thank you so much. (5 Replies)
Discussion started by: chercheur857
5 Replies