Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
angle
Commits
c832516a
Commit
c832516a
authored
Aug 09, 2013
by
Geoff Lang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a Context::getScissorParams method.
TRAC #23650 Author: Geoff Lang Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods
parent
7f6562b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
Context.cpp
src/libGLESv2/Context.cpp
+8
-0
Context.h
src/libGLESv2/Context.h
+1
-0
No files found.
src/libGLESv2/Context.cpp
View file @
c832516a
...
@@ -638,6 +638,14 @@ void Context::setScissorParams(GLint x, GLint y, GLsizei width, GLsizei height)
...
@@ -638,6 +638,14 @@ void Context::setScissorParams(GLint x, GLint y, GLsizei width, GLsizei height)
mState
.
scissor
.
height
=
height
;
mState
.
scissor
.
height
=
height
;
}
}
void
Context
::
getScissorParams
(
GLint
*
x
,
GLint
*
y
,
GLsizei
*
width
,
GLsizei
*
height
)
{
*
x
=
mState
.
scissor
.
x
;
*
y
=
mState
.
scissor
.
y
;
*
width
=
mState
.
scissor
.
width
;
*
height
=
mState
.
scissor
.
height
;
}
void
Context
::
setColorMask
(
bool
red
,
bool
green
,
bool
blue
,
bool
alpha
)
void
Context
::
setColorMask
(
bool
red
,
bool
green
,
bool
blue
,
bool
alpha
)
{
{
mState
.
blend
.
colorMaskRed
=
red
;
mState
.
blend
.
colorMaskRed
=
red
;
...
...
src/libGLESv2/Context.h
View file @
c832516a
...
@@ -214,6 +214,7 @@ class Context
...
@@ -214,6 +214,7 @@ class Context
void
setViewportParams
(
GLint
x
,
GLint
y
,
GLsizei
width
,
GLsizei
height
);
void
setViewportParams
(
GLint
x
,
GLint
y
,
GLsizei
width
,
GLsizei
height
);
void
setScissorParams
(
GLint
x
,
GLint
y
,
GLsizei
width
,
GLsizei
height
);
void
setScissorParams
(
GLint
x
,
GLint
y
,
GLsizei
width
,
GLsizei
height
);
void
getScissorParams
(
GLint
*
x
,
GLint
*
y
,
GLsizei
*
width
,
GLsizei
*
height
);
void
setColorMask
(
bool
red
,
bool
green
,
bool
blue
,
bool
alpha
);
void
setColorMask
(
bool
red
,
bool
green
,
bool
blue
,
bool
alpha
);
void
setDepthMask
(
bool
mask
);
void
setDepthMask
(
bool
mask
);
...
...
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