Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gl-react-native-v2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ym
gl-react-native-v2
Commits
fbdd1134
Commit
fbdd1134
authored
Jan 07, 2016
by
Gaëtan Renaudeau
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 2.18.0
parents
1cfec472
d5c628c9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
36 deletions
+34
-36
README.md
README.md
+20
-20
ios/GLCanvas.m
ios/GLCanvas.m
+13
-15
package.json
package.json
+1
-1
No files found.
README.md
View file @
fbdd1134
...
@@ -27,20 +27,20 @@ npm i --save gl-react-native
...
@@ -27,20 +27,20 @@ npm i --save gl-react-native
**on Android:**
**on Android:**
1.
`android/settings.gradle`
:: Add the following snippet
1.
`android/settings.gradle`
:: Add the following snippet
```
gradle
```
gradle
include
':RNGL'
include
':RNGL'
project
(
':RNGL'
).
projectDir
=
file
(
'../node_modules/gl-react-native/android'
)
project
(
':RNGL'
).
projectDir
=
file
(
'../node_modules/gl-react-native/android'
)
```
```
1.
`android/app/build.gradle`
: Add in dependencies block.
1.
`android/app/build.gradle`
: Add in dependencies block.
```
gradle
```
gradle
compile
project
(
':RNGL'
)
compile
project
(
':RNGL'
)
```
```
1.
in your
`MainActivity`
(or equivalent):
1.
in your
`MainActivity`
(or equivalent):
```
java
```
java
import
com.projectseptember.RNGL.RNGLPackage
;
import
com.projectseptember.RNGL.RNGLPackage
;
...
...
mReactInstanceManager
=
ReactInstanceManager
.
builder
()
mReactInstanceManager
=
ReactInstanceManager
.
builder
()
.
setApplication
(
getApplication
())
.
setApplication
(
getApplication
())
...
...
.
addPackage
(
new
MainReactPackage
())
.
addPackage
(
new
MainReactPackage
())
...
@@ -48,4 +48,4 @@ npm i --save gl-react-native
...
@@ -48,4 +48,4 @@ npm i --save gl-react-native
...
...
.
build
();
.
build
();
```
```
ios/GLCanvas.m
View file @
fbdd1134
...
@@ -341,7 +341,6 @@ RCT_NOT_IMPLEMENTED(-init)
...
@@ -341,7 +341,6 @@ RCT_NOT_IMPLEMENTED(-init)
if
(
imgData
)
contentData
[
i
]
=
imgData
;
if
(
imgData
)
contentData
[
i
]
=
imgData
;
}
}
_contentData
=
contentData
;
_contentData
=
contentData
;
_deferredRendering
=
false
;
[
self
setNeedsDisplay
];
[
self
setNeedsDisplay
];
RCT_PROFILE_END_EVENT
(
0
,
@"gl"
,
nil
);
RCT_PROFILE_END_EVENT
(
0
,
@"gl"
,
nil
);
}
}
...
@@ -406,14 +405,13 @@ RCT_NOT_IMPLEMENTED(-init)
...
@@ -406,14 +405,13 @@ RCT_NOT_IMPLEMENTED(-init)
return
;
return
;
}
}
bool
willRender
=
!
_deferredRendering
;
BOOL
needsDeferredRendering
=
[
_nbContentTextures
intValue
]
>
0
&&
!
_autoRedraw
;
if
(
needsDeferredRendering
&&
!
_deferredRendering
)
{
if
([
_nbContentTextures
intValue
]
>
0
&&
!
_autoRedraw
)
{
_deferredRendering
=
true
;
_deferredRendering
=
true
;
[
self
performSelectorOnMainThread
:
@selector
(
syncContentData
)
withObject
:
nil
waitUntilDone
:
NO
];
[
self
performSelectorOnMainThread
:
@selector
(
syncContentData
)
withObject
:
nil
waitUntilDone
:
NO
];
}
}
else
{
if
(
willRender
)
{
_deferredRendering
=
false
;
[
self
render
];
[
self
render
];
if
(
!
_captureScheduled
&&
[
_captureConfigs
count
]
>
0
)
{
if
(
!
_captureScheduled
&&
[
_captureConfigs
count
]
>
0
)
{
_captureScheduled
=
true
;
_captureScheduled
=
true
;
...
...
package.json
View file @
fbdd1134
{
{
"name"
:
"gl-react-native"
,
"name"
:
"gl-react-native"
,
"version"
:
"2.17.
5
"
,
"version"
:
"2.17.
8
"
,
"description"
:
"OpenGL bindings for react-native to implement complex effects over images and components, in the descriptive VDOM paradigm"
,
"description"
:
"OpenGL bindings for react-native to implement complex effects over images and components, in the descriptive VDOM paradigm"
,
"repository"
:
{
"repository"
:
{
"type"
:
"git"
,
"type"
:
"git"
,
...
...
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