Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
rpng-x.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xos.h>
#include <X11/keysym.h>
#include "readpng.h"

Go to the source code of this file.

Macros

#define PROGNAME   "rpng-x"
 
#define LONGNAME   "Simple PNG Viewer for X"
 
#define VERSION   "2.01 of 16 March 2008"
 
#define RESNAME   "rpng" /* our X resource application name */
 
#define RESCLASS   "Rpng" /* our X resource class name */
 
#define alpha_composite(composite, fg, alpha, bg)
 
#define NO_24BIT_MASKS
 

Functions

int main (int argc, char **argv)
 

Macro Definition Documentation

◆ alpha_composite

#define alpha_composite (   composite,
  fg,
  alpha,
  bg 
)
Value:
{ \
ush temp = ((ush)(fg)*(ush)(alpha) + \
(ush)(bg)*(ush)(255 - (ush)(alpha)) + (ush)128); \
(composite) = (uch)((temp + (temp >> 8)) >> 8); \
}
unsigned short ush
Definition: zutil.h:36
GLfloat GLfloat GLfloat alpha
unsigned char uch
Definition: zutil.h:34

Definition at line 106 of file rpng-x.c.

◆ LONGNAME

#define LONGNAME   "Simple PNG Viewer for X"

Definition at line 82 of file rpng-x.c.

◆ NO_24BIT_MASKS

#define NO_24BIT_MASKS

◆ PROGNAME

#define PROGNAME   "rpng-x"

Definition at line 81 of file rpng-x.c.

◆ RESCLASS

#define RESCLASS   "Rpng" /* our X resource class name */

Definition at line 85 of file rpng-x.c.

◆ RESNAME

#define RESNAME   "rpng" /* our X resource application name */

Definition at line 84 of file rpng-x.c.

◆ VERSION

#define VERSION   "2.01 of 16 March 2008"

Definition at line 83 of file rpng-x.c.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 162 of file rpng-x.c.

References error, and FALSE.