source: trunk/packages/vizservers/vtkvis/TGAWriter.h @ 3106

Last change on this file since 3106 was 2573, checked in by ldelgass, 13 years ago

Merge vtkvis_threaded branch to trunk. (Threading off by default in Makefile)

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