source: vtkvis/tags/1.8.1/TGAWriter.h @ 5214

Last change on this file since 5214 was 3615, checked in by ldelgass, 11 years ago

Remove enclosing Rappture namespace from vtkvis. Remove outline and outline
color subcommands from dataset in vtkvis protocol -- they are replaced by the
outline object. Translate heightmap to dataset z plane (client is doing this
right now).

  • Property svn:eol-style set to native
File size: 837 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * Copyright (C) 2004-2012  HUBzero Foundation, LLC
4 *
5 * Author: Leif Delgass <ldelgass@purdue.edu>
6 */
7
8#ifndef VTKVIS_TGAWRITER_H
9#define VTKVIS_TGAWRITER_H
10
11#ifdef USE_THREADS
12#include "ResponseQueue.h"
13#endif
14
15namespace VtkVis {
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.