~ubuntu-branches/ubuntu/precise/rss-glx/precise

« back to all changes in this revision

Viewing changes to include/loadTexture.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2009-06-03 18:41:32 UTC
  • mfrom: (1.1.5 upstream) (2.2.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090603184132-znjy66pq9xom7hac
Tags: 0.9.0-2ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop dependency on openal. It is not enabled by default anyway, and
    allows openal to migrate to universe.
  - src/skyrocket.{cpp,xml}: Disable sound by default.
  - Add --disable-sound configure flag to debian/rules, as we don't keep 
    the dependencies on openal nor freeglut (both universe packages).
* Dropped changes, merged upstream:
  - other_src/Makefile.am: fix the upstream build rules to actually use
    the ImageMagick CFLAGS returned by pkg-config.
  - Move the unconditional ImageMagick check up in configure.in so that
    our first PKG_CHECK_MODULES() call isn't hidden behind a shell
    conditional.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2002  Tugrul Galatali <tugrul@galatali.com>
3
 
 *
4
 
 * rsMath is free software; you can redistribute it and/or modify
5
 
 * it under the terms of the GNU General Public License version 2 as 
6
 
 * published by the Free Software Foundation.
7
 
 *
8
 
 * rsMath is distributed in the hope that it will be useful,
9
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 
 * GNU General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU General Public License
14
 
 * along with this program; if not, write to the Free Software
15
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
 
 */
17
 
 
18
 
#ifndef LOADTEXTURE_H
19
 
#define LOADTEXTURE_H
20
 
 
21
 
#include "config.h"
22
 
 
23
 
#ifndef HAVE_BZLIB_H
24
 
#undef HAVE_LIBBZ2
25
 
#endif
26
 
 
27
 
#ifdef HAVE_LIBBZ2
28
 
 
29
 
#include <bzlib.h>
30
 
 
31
 
#define LOAD_TEXTURE(dest, src, compressedSize, size) dest = (unsigned char *)malloc(size); BZ2_bzBuffToBuffDecompress((char *)dest, &size, (char *)src, compressedSize, 0, 0);
32
 
 
33
 
#define FREE_TEXTURE(tex) free(tex);
34
 
 
35
 
#else
36
 
 
37
 
#define LOAD_TEXTURE(dest, src, compressedSize, size) dest = src; 
38
 
#define FREE_TEXTURE(tex) tex = 0;
39
 
 
40
 
#endif
41
 
 
42
 
#endif