~ubuntu-branches/ubuntu/trusty/python-sfml/trusty

« back to all changes in this revision

Viewing changes to python/src/Glyph.hpp

  • Committer: Package Import Robot
  • Author(s): James Cowgill
  • Date: 2013-12-09 17:50:52 UTC
  • mfrom: (1.1.3) (8.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20131209175052-11v6drpb6g3yksst
Tags: 1.5.1.is.1.3+dfsg-1
* New upstream version 1.3 (from python-sfml.org)
  - This is a complete rewrite of the Python bindings for SFML2, and
    the new maintainer is using a different version numbering scheme.
* Added myself to the list of uploaders
* Change package priority from extra to optional
* Bumped standards version (to 3.9.5) and debhelper compat (to 9)
* Added Python 3 and documentation packages
* Improve package description for debug packages

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
////////////////////////////////////////////////////////////
2
 
//
3
 
// PySFML - Python binding for SFML (Simple and Fast Multimedia Library)
4
 
// Copyright (C) 2007, 2008 Rémi Koenig (remi.k2620@gmail.com)
5
 
//
6
 
// This software is provided 'as-is', without any express or implied warranty.
7
 
// In no event will the authors be held liable for any damages arising from the use of this software.
8
 
//
9
 
// Permission is granted to anyone to use this software for any purpose,
10
 
// including commercial applications, and to alter it and redistribute it freely,
11
 
// subject to the following restrictions:
12
 
//
13
 
// 1. The origin of this software must not be misrepresented;
14
 
//    you must not claim that you wrote the original software.
15
 
//    If you use this software in a product, an acknowledgment
16
 
//    in the product documentation would be appreciated but is not required.
17
 
//
18
 
// 2. Altered source versions must be plainly marked as such,
19
 
//    and must not be misrepresented as being the original software.
20
 
//
21
 
// 3. This notice may not be removed or altered from any source distribution.
22
 
//
23
 
////////////////////////////////////////////////////////////
24
 
 
25
 
#ifndef __PYGLYPH_HPP
26
 
#define __PYGLYPH_HPP
27
 
 
28
 
#include <Python.h>
29
 
 
30
 
#include <SFML/Graphics/Glyph.hpp>
31
 
 
32
 
#include "Rect.hpp"
33
 
 
34
 
 
35
 
typedef struct {
36
 
        PyObject_HEAD
37
 
        bool Owner;
38
 
        int Advance;
39
 
        PySfIntRect *Rectangle;
40
 
        PySfFloatRect *TexCoords;
41
 
        sf::Glyph *obj;
42
 
} PySfGlyph;
43
 
 
44
 
PySfGlyph *
45
 
GetNewPySfGlyph();
46
 
 
47
 
void
48
 
PySfGlyphUpdateObj(PySfGlyph *self);
49
 
 
50
 
void
51
 
PySfGlyphUpdateSelf(PySfGlyph *self);
52
 
 
53
 
#endif