Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ACGL
acgl
Commits
45cb3586
Commit
45cb3586
authored
Aug 11, 2011
by
Andreas Neu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added method setTexSubImage2D within Texture.hh in order to support glTexSubImage2D.
parent
a70c4d1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
include/ACGL/OpenGL/Objects/Texture.hh
include/ACGL/OpenGL/Objects/Texture.hh
+21
-0
No files found.
include/ACGL/OpenGL/Objects/Texture.hh
View file @
45cb3586
...
...
@@ -223,6 +223,27 @@ public:
mType
,
_pData
);
}
//! Set data for specific area within the texture
inline
void
setTexSubImage2D
(
const
GLvoid
*
_pData
,
int
_x
,
int
_y
,
int
_width
,
int
_height
)
{
bind
();
glTexSubImage2D
(
mTarget
,
0
,
_x
,
_y
,
_width
,
_height
,
mFormat
,
mType
(),
_pData
);
}
//! Generate mipmaps from the current base texture (i.e. the texture from level 0).
void
generateMipmaps
(
void
)
const
...
...
Write
Preview
Markdown
is supported
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