Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ACGL
acgl
Commits
f15fd9ec
Commit
f15fd9ec
authored
Jun 24, 2013
by
Robert Menzel
Browse files
added method to delete texture data
parent
5a327eed
Changes
2
Show whitespace changes
Inline
Side-by-side
include/ACGL/Animations/Animation.hh
View file @
f15fd9ec
...
...
@@ -27,8 +27,8 @@ public:
Animation
()
:
mInited
(
false
),
mStopped
(
false
)
{}
;
virtual
~
Animation
()
{}
;
mStopped
(
false
)
{}
virtual
~
Animation
()
{}
virtual
void
init
()
=
0
;
virtual
long
update
(
uint_t
msec
)
=
0
;
...
...
include/ACGL/OpenGL/Data/TextureData.hh
View file @
f15fd9ec
...
...
@@ -101,6 +101,9 @@ public:
void
setPadding
(
GLsizei
_padding
){
paddingBytesPerRow
=
_padding
;
}
void
setSize
(
const
glm
::
uvec3
&
_size
)
{
width
=
_size
.
x
;
height
=
_size
.
y
;
depth
=
_size
.
z
;
}
//! deletes the data attached to this object
void
deleteData
()
{
delete
[]
pData
;
pData
=
NULL
;
}
// ========================================================================================================= \/
// ================================================================================================== FIELDS \/
// ========================================================================================================= \/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment