~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to api/gutil.h

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#ifndef GUTIL_H
23
23
#define GUTIL_H
24
24
 
25
 
#include <string.h>
 
25
#include <cstdio>
 
26
#include <cstdlib>
 
27
#include <cstring>
26
28
 
27
29
struct COLOR {
28
30
    float r;
211
213
    double xsize;          // size of underlying image
212
214
    double ysize;
213
215
        TEXTURE_DESC() : present(false),id(0),xsize(0),ysize(0) {};
214
 
    void draw(float* pos, float* size, int xalign, int yalign);
 
216
    void draw(float* pos, float* size, int xalign, int yalign, float alpha=1.);
215
217
    int load_image_file(const char* filename);
216
218
    int CreateTextureJPG(const char* strFileName);
217
219
    int CreateTextureBMP(const char* strFileName);