30#ifndef __CHITRALEKHA_H__
31#define __CHITRALEKHA_H__
#define XE_LIB
Definition _xeneva.h:55
#define XE_EXTERN
Definition _xeneva.h:50
unsigned int uint32_t
Definition acefiex.h:163
unsigned short int uint16_t
Definition acefiex.h:162
XE_LIB int ChAllocateBuffer(ChCanvas *canvas)
ChAllocateBuffer – allocates buffers for graphics.
Definition chitralekha.cpp:90
struct _ChCanvas_ ChCanvas
XE_LIB uint32_t ChGetPixel(ChCanvas *canvas, int x, int y)
ChGetPixel – retuns a pixel from canvas.
Definition chitralekha.cpp:272
XE_LIB float ChGetScreenDiagonal(ChCanvas *canv)
ChGetScreenDiagonal – get screen diagonal using pythagorean theorem in centimetre.
Definition chitralekha.cpp:316
XE_LIB float ChGetScreenDPI(ChCanvas *canv)
ChGetScreenDPI – converts screen resolution into dot-per-inch in centimetre.
Definition chitralekha.cpp:326
XE_LIB void ChCanvasScreenUpdate(ChCanvas *canvas, int x, int y, int w, int h)
ChCanvasScreenUpdate – updates screen buffer with canvas buffer contents.
Definition chitralekha.cpp:128
XE_LIB int ChPrintLibName()
Definition chitralekha.cpp:45
XE_LIB void ChDrawPixel(ChCanvas *canvas, int x, int y, uint32_t color)
ChDrawPixel – draws a pixel to canvas buffer.
Definition chitralekha.cpp:181
XE_LIB int ChDeAllocateBuffer(ChCanvas *canvas)
ChDeAllocateBuffer – de-allocates buffers from canvas.
Definition chitralekha.cpp:111
XE_LIB int ChGetScreenAspectRatio(ChCanvas *canv)
ChGetScreenAspectRatio – returns the aspect ration of the screen.
Definition chitralekha.cpp:336
XE_LIB void ChDrawPixelAA(ChCanvas *canv, int x, int y, uint32_t color, double alpha)
ChDrawPixelAA – draw anti-aliased pixel.
Definition chitralekha.cpp:260
XE_LIB void ChCanvasFill(ChCanvas *canvas, int w, int h, uint32_t color)
ChCanvasFill – fill the canvas with specific color.
Definition chitralekha.cpp:304
XE_LIB ChCanvas * ChCreateCanvas(int reqW, int reqH)
ChCreateCanvas – creates a new canvas.
Definition chitralekha.cpp:55
XE_LIB void ChDrawPixelRAW(ChCanvas *canvas, int x, int y, uint32_t color)
ChDrawPixelRAW – draws a pixel to canvas buffer.
Definition chitralekha.cpp:223
ChCanvas * canvas
Definition deomain.cpp:92
Definition chitralekha.h:43
uint32_t * framebuff
Definition chitralekha.h:54
int graphics_fd
Definition chitralekha.h:44
uint32_t screenHeight
Definition chitralekha.h:46
uint32_t pitch
Definition chitralekha.h:49
uint32_t canvasHeight
Definition chitralekha.h:51
uint16_t scanline
Definition chitralekha.h:48
uint32_t screenWidth
Definition chitralekha.h:45
uint32_t canvasWidth
Definition chitralekha.h:50
size_t bufferSz
Definition chitralekha.h:53
uint32_t * buffer
Definition chitralekha.h:52
uint32_t bpp
Definition chitralekha.h:47