Ignore:
Timestamp:
Sep 8, 2011, 12:14:54 PM (13 years ago)
Author:
gah
Message:

added ifdefs for threaded compilation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/vtkvis_threaded/TGAWriter.h

    r2260 r2488  
    99#define __RAPPTURE_VTKVIS_TGAWRITER_H__
    1010
     11#ifdef USE_THREADS
     12#include "ResponseQueue.h"
     13#endif /*USE_THREADS*/
     14
    1115namespace Rappture {
    12 namespace VtkVis {
    13 
    14 extern
    15 void writeTGA(int fd, const char *cmdName, const unsigned char *data,
    16               int width, int height, int bytesPerPixel);
    17 
    18 extern
    19 void writeTGAFile(const char *filename, const unsigned char *data,
    20                   int width, int height, int bytesPerPixel,
    21                   bool srcIsRGB = false);
    22 
    23 }
     16    namespace VtkVis {
     17#ifdef USE_THREADS
     18        extern void QueueTGA(ResponseQueue *queuePtr, const char *cmdName,
     19                const unsigned char *data, int width, int height,
     20                int bytesPerPixel);
     21#else
     22        extern void writeTGA(int fd, const char *cmdName,
     23                const unsigned char *data, int width, int height,
     24                int bytesPerPixel);
     25#endif  /*USE_THREADS*/
     26        extern void writeTGAFile(const char *filename,
     27                const unsigned char *data, int width, int height,
     28                int bytesPerPixel, bool srcIsRGB = false);
     29    }
    2430}
    2531
    26 #endif
     32#endif  /*__RAPPTURE_VTKVIS_TGA_WRITER_H__*/
Note: See TracChangeset for help on using the changeset viewer.