Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
acgl
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ACGL
acgl
Commits
a256f626
Commit
a256f626
authored
Jan 30, 2013
by
Robert Menzel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'experimental' of
file:///data/git-repository/acgl/libraries/acgl
into experimental
parents
67c4cd79
074f7e39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
7 deletions
+23
-7
include/ACGL/OpenGL/Controller/ArrayBufferControl.hh
include/ACGL/OpenGL/Controller/ArrayBufferControl.hh
+9
-1
src/ACGL/OpenGL/Controller/ArrayBufferControl.cc
src/ACGL/OpenGL/Controller/ArrayBufferControl.cc
+14
-6
No files found.
include/ACGL/OpenGL/Controller/ArrayBufferControl.hh
View file @
a256f626
...
...
@@ -30,6 +30,7 @@ public:
GLenum
type
;
GLint
dimension
;
GLboolean
normalized
;
GLboolean
isInteger
;
};
// ===================================================================================================== \/
...
...
@@ -65,7 +66,14 @@ public:
inline
ArrayBufferControl
&
attribute
(
const
std
::
string
&
_name
,
GLenum
_type
,
GLint
_dimension
,
GLboolean
_normalized
=
GL_FALSE
)
{
AttributeDefine
a
=
{
_name
,
_type
,
_dimension
,
_normalized
};
AttributeDefine
a
=
{
_name
,
_type
,
_dimension
,
_normalized
,
GL_FALSE
};
mAttributeDefines
.
push_back
(
a
);
return
*
this
;
}
inline
ArrayBufferControl
&
integerAttribute
(
const
std
::
string
&
_name
,
GLenum
_type
,
GLint
_dimension
)
{
AttributeDefine
a
=
{
_name
,
_type
,
_dimension
,
GL_FALSE
,
GL_TRUE
};
mAttributeDefines
.
push_back
(
a
);
return
*
this
;
}
...
...
src/ACGL/OpenGL/Controller/ArrayBufferControl.cc
View file @
a256f626
...
...
@@ -16,10 +16,20 @@ SharedArrayBuffer ArrayBufferControl::create(void)
for
(
AttributeDefineVec
::
size_type
i
=
0
;
i
<
mAttributeDefines
.
size
();
i
++
)
{
arrayBuffer
->
defineAttribute
(
mAttributeDefines
[
i
].
name
,
mAttributeDefines
[
i
].
type
,
mAttributeDefines
[
i
].
dimension
,
mAttributeDefines
[
i
].
normalized
);
if
(
mAttributeDefines
[
i
].
isInteger
)
{
arrayBuffer
->
defineIntegerAttribute
(
mAttributeDefines
[
i
].
name
,
mAttributeDefines
[
i
].
type
,
mAttributeDefines
[
i
].
dimension
);
}
else
{
arrayBuffer
->
defineAttribute
(
mAttributeDefines
[
i
].
name
,
mAttributeDefines
[
i
].
type
,
mAttributeDefines
[
i
].
dimension
,
mAttributeDefines
[
i
].
normalized
);
}
}
if
(
mpData
!=
NULL
)
{
...
...
@@ -28,5 +38,3 @@ SharedArrayBuffer ArrayBufferControl::create(void)
}
return
arrayBuffer
;
}
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