~ubuntu-branches/ubuntu/trusty/libavg/trusty-proposed

« back to all changes in this revision

Viewing changes to src/player/MaterialInfo.cpp

  • Committer: Package Import Robot
  • Author(s): OXullo Intersecans
  • Date: 2011-12-06 22:44:56 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20111206224456-qc7250z3ya1vi8s9
Tags: 1.7.0-0ubuntu1
* New upstream release (LP: #899183)
* Remove patches 0002-libav-0.7.patch, 0003-fglrx-segfault-on-startup.patch
  now merged to upstream
* Remove unnecessary .la files
* Update debian/watch file
* Fix debian/copyright dep-5 compliancy
* Update standards to version 3.9.2
* Add man pages for avg_checktouch, avg_checkvsync, avg_showsvg
* Minor debian/rules enhancement
* Add librsvg2-dev, libgdk-pixbuf2.0-dev to Build-Depends
* Proper transition to dh_python2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
2
//  libavg - Media Playback Engine. 
3
 
//  Copyright (C) 2003-2008 Ulrich von Zadow
 
3
//  Copyright (C) 2003-2011 Ulrich von Zadow
4
4
//
5
5
//  This library is free software; you can redistribute it and/or
6
6
//  modify it under the terms of the GNU Lesser General Public
29
29
 
30
30
namespace avg {
31
31
 
32
 
MaterialInfo::MaterialInfo(int texWrapSMode, int texWrapTMode, bool bUseMipmaps)
33
 
    : m_TexWrapSMode(texWrapSMode),
34
 
      m_TexWrapTMode(texWrapTMode),
35
 
      m_bUseMipmaps(bUseMipmaps),
36
 
      m_bHasMask(false)
 
32
MaterialInfo::MaterialInfo(int wrapSMode, int wrapTMode, bool bUseMipmaps)
 
33
    : m_WrapSMode(wrapSMode),
 
34
      m_WrapTMode(wrapTMode),
 
35
      m_bUseMipmaps(bUseMipmaps)
37
36
{}
38
37
 
39
 
void MaterialInfo::setMask(bool bHasMask)
40
 
{
41
 
    m_bHasMask = bHasMask;
42
 
}
43
 
 
44
 
void MaterialInfo::setMaskCoords(const DPoint& pos, const DPoint& size)
45
 
{
46
 
    AVG_ASSERT(m_bHasMask);
47
 
    m_MaskPos = pos;
48
 
    m_MaskSize = size;
49
 
}
50
 
 
51
 
bool MaterialInfo::getHasMask() const
52
 
{
53
 
    return m_bHasMask;
54
 
}
55
 
 
56
 
const DPoint& MaterialInfo::getMaskPos() const
57
 
{
58
 
    return m_MaskPos;
59
 
}
60
 
 
61
 
const DPoint& MaterialInfo::getMaskSize() const
62
 
{
63
 
    return m_MaskSize;
64
 
}
65
 
 
66
 
int MaterialInfo::getTexWrapSMode() const
67
 
{
68
 
    return m_TexWrapSMode;
69
 
}
70
 
 
71
 
int MaterialInfo::getTexWrapTMode() const
72
 
{
73
 
    return m_TexWrapTMode;
74
 
}
75
 
 
76
 
void MaterialInfo::setUseMipmaps(bool bUseMipmaps)
77
 
{
78
 
    m_bUseMipmaps = bUseMipmaps;
 
38
int MaterialInfo::getWrapSMode() const
 
39
{
 
40
    return m_WrapSMode;
 
41
}
 
42
 
 
43
int MaterialInfo::getWrapTMode() const
 
44
{
 
45
    return m_WrapTMode;
79
46
}
80
47
 
81
48
bool MaterialInfo::getUseMipmaps() const