Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
skiko
Project
Project
Details
Activity
Releases
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
liuqiang
skiko
Commits
fc166bd6
Commit
fc166bd6
authored
Sep 03, 2021
by
Nikolay Igotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix couple typos.
parent
1da66b06
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
settings.gradle
settings.gradle
+1
-1
BackendRenderTarget.cc
skiko/src/jsMain/cpp/BackendRenderTarget.cc
+4
-3
No files found.
settings.gradle
View file @
fc166bd6
rootProject
.
name
=
"skiko-all"
includeBuild
(
"samples/Ski
jaInject
Sample"
)
includeBuild
(
"samples/Ski
aJvm
Sample"
)
includeBuild
(
"skiko"
)
\ No newline at end of file
skiko/src/jsMain/cpp/BackendRenderTarget.cc
View file @
fc166bd6
...
...
@@ -2,6 +2,7 @@
#include <emscripten.h>
typedef
int32_t
jint
;
// TODO: likely we shall use jint, not jlong for passing pointers.
typedef
int64_t
jlong
;
static
void
deleteBackendRenderTarget
(
GrBackendRenderTarget
*
rt
)
{
...
...
@@ -9,12 +10,12 @@ static void deleteBackendRenderTarget(GrBackendRenderTarget* rt) {
}
EMSCRIPTEN_KEEPALIVE
extern
"C"
long
BackendRenderTarget_nGetFinalizer
()
{
extern
"C"
j
long
BackendRenderTarget_nGetFinalizer
()
{
return
static_cast
<
jlong
>
(
reinterpret_cast
<
uintptr_t
>
(
&
deleteBackendRenderTarget
));
}
EMSCRIPTEN_KEEPALIVE
extern
"C"
long
BackendRenderTarget_nMakeGL
extern
"C"
j
long
BackendRenderTarget_nMakeGL
(
jint
width
,
jint
height
,
jint
sampleCnt
,
jint
stencilBits
,
jint
fbId
,
jint
fbFormat
)
{
GrGLFramebufferInfo
glInfo
=
{
static_cast
<
unsigned
int
>
(
fbId
),
static_cast
<
unsigned
int
>
(
fbFormat
)
};
GrBackendRenderTarget
*
instance
=
new
GrBackendRenderTarget
(
width
,
height
,
sampleCnt
,
stencilBits
,
glInfo
);
...
...
@@ -22,7 +23,7 @@ extern "C" long BackendRenderTarget_nMakeGL
}
EMSCRIPTEN_KEEPALIVE
extern
"C"
long
BackendRenderTarget_nMakeMetal
extern
"C"
j
long
BackendRenderTarget_nMakeMetal
(
jint
width
,
jint
height
,
jlong
texturePtr
)
{
#ifdef SK_METAL
GrMTLHandle
texture
=
reinterpret_cast
<
GrMTLHandle
>
(
static_cast
<
uintptr_t
>
(
texturePtr
));
...
...
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