Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
RoboGuide
scigl_render
Commits
a9886304
Commit
a9886304
authored
Mar 05, 2019
by
Tim Übelhör
Browse files
using member functions
parent
acfd206f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/buffer/texture2d.cpp
View file @
a9886304
...
...
@@ -9,9 +9,9 @@ Texture2D::Texture2D(GLsizei width, GLsizei height,
type
(
type
)
{
glGenTextures
(
1
,
&
texture
);
glBindTexture
(
GL_TEXTURE_2D
,
texture
);
bind
(
);
glTexStorage2D
(
GL_TEXTURE_2D
,
1
,
internal_format
,
width
,
height
);
glBindTexture
(
GL_TEXTURE_2D
,
0
);
unbind
(
);
}
Texture2D
::~
Texture2D
()
...
...
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