Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#5231: Refactor GenericTextureDefinition into a simple struct. It can…
… be used to transfer data from and to the Surface Inspector, rather than the inspector doing the math on its own this is now handled by the Face.
- Loading branch information
1 parent
a3c277a
commit fb5795e
Showing
15 changed files
with
193 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,18 @@ | ||
/* | ||
Copyright (C) 2001-2006, William Joseph. | ||
All Rights Reserved. | ||
#pragma once | ||
|
||
This file is part of GtkRadiant. | ||
namespace brush | ||
{ | ||
|
||
GtkRadiant is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 2 of the License, or | ||
(at your option) any later version. | ||
GtkRadiant is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with GtkRadiant; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
*/ | ||
|
||
#if !defined (INCLUDED_ITEXDEF_H) | ||
#define INCLUDED_ITEXDEF_H | ||
|
||
class Matrix4; | ||
|
||
/* greebo: The texture definition structure, containing the scale, | ||
/** | ||
* greebo: The texture definition structure containing the scale, | ||
* rotation and shift values of an applied texture. | ||
* At some places this is referred to as "fake" texture coordinates. | ||
*/ | ||
class GenericTextureDefinition { | ||
public: | ||
struct ShiftScaleRotation | ||
{ | ||
double _shift[2]; | ||
double _rotate; | ||
double _scale[2]; | ||
|
||
virtual ~GenericTextureDefinition() {} | ||
|
||
// Test the texture definition for insanely large values | ||
virtual bool isSane() const = 0; | ||
virtual Matrix4 getTransform(double width, double height) const = 0; | ||
}; | ||
|
||
#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.