source: geovis/trunk/TGAWriter.h @ 4643

Last change on this file since 4643 was 3998, checked in by ldelgass, 10 years ago

Add prelimilary skeleton for geovis map rendering server. Not functional, not
integrated into configure, etc.

File size: 837 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * Copyright (C) 2004-2013  HUBzero Foundation, LLC
4 *
5 * Author: Leif Delgass <ldelgass@purdue.edu>
6 */
7
8#ifndef GEOVIS_TGAWRITER_H
9#define GEOVIS_TGAWRITER_H
10
11#ifdef USE_THREADS
12#include "ResponseQueue.h"
13#endif
14
15namespace GeoVis {
16#ifdef USE_THREADS
17extern
18void queueTGA(ResponseQueue *queue, const char *cmdName,
19              const unsigned char *data, int width, int height,
20              int bytesPerPixel);
21#else
22extern
23void writeTGA(int fd, const char *cmdName,
24              const unsigned char *data, int width, int height,
25              int bytesPerPixel);
26#endif
27extern
28void writeTGAFile(const char *filename,
29                  const unsigned char *data, int width, int height,
30                  int bytesPerPixel, bool srcIsRGB = false);
31}
32
33#endif
Note: See TracBrowser for help on using the repository browser.