From 0b89ee6bb0eb901c9ad9d1199548b14fa72ef9c5 Mon Sep 17 00:00:00 2001 From: Sukwon Suh Date: Mon, 18 Mar 2013 17:26:13 +0900 Subject: [PATCH] Add a GlesCanvasTexture sample Change-Id: I72e4f7ff03de31cc22526aeafb3a38a588a45f9d Signed-off-by: Sukwon Suh --- LICENSE.Flora | 206 ++++++ NOTICE | 4 + description.xml | 9 + project/data/nofile.dummy | 0 project/inc/GlesCanvasTexture.h | 123 ++++ project/manifest.xml | 22 + project/res/nofile.dummy | 0 project/shared/data/nofile.dummy | 0 .../shared/res/screen-density-xhigh/mainmenu.png | Bin 0 -> 17581 bytes project/shared/trusted/nofile.dummy | 0 project/src/GlesCanvasTexture.cpp | 779 +++++++++++++++++++++ project/src/GlesCanvasTextureEntry.cpp | 61 ++ sample.xml | 34 + screenshot.png | Bin 0 -> 14418 bytes 14 files changed, 1238 insertions(+) create mode 100644 LICENSE.Flora create mode 100644 NOTICE create mode 100644 description.xml create mode 100644 project/data/nofile.dummy create mode 100644 project/inc/GlesCanvasTexture.h create mode 100644 project/manifest.xml create mode 100644 project/res/nofile.dummy create mode 100644 project/shared/data/nofile.dummy create mode 100644 project/shared/res/screen-density-xhigh/mainmenu.png create mode 100644 project/shared/trusted/nofile.dummy create mode 100644 project/src/GlesCanvasTexture.cpp create mode 100644 project/src/GlesCanvasTextureEntry.cpp create mode 100644 sample.xml create mode 100644 screenshot.png diff --git a/LICENSE.Flora b/LICENSE.Flora new file mode 100644 index 0000000..9c95663 --- /dev/null +++ b/LICENSE.Flora @@ -0,0 +1,206 @@ +Flora License + +Version 1.0, May, 2012 + +http://floralicense.org/license/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, +and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by +the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and +all other entities that control, are controlled by, or are +under common control with that entity. For the purposes of +this definition, "control" means (i) the power, direct or indirect, +to cause the direction or management of such entity, +whether by contract or otherwise, or (ii) ownership of fifty percent (50%) +or more of the outstanding shares, or (iii) beneficial ownership of +such entity. + +"You" (or "Your") shall mean an individual or Legal Entity +exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, +including but not limited to software source code, documentation source, +and configuration files. + +"Object" form shall mean any form resulting from mechanical +transformation or translation of a Source form, including but +not limited to compiled object code, generated documentation, +and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, +made available under the License, as indicated by a copyright notice +that is included in or attached to the work (an example is provided +in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, +that is based on (or derived from) the Work and for which the editorial +revisions, annotations, elaborations, or other modifications represent, +as a whole, an original work of authorship. For the purposes of this License, +Derivative Works shall not include works that remain separable from, +or merely link (or bind by name) to the interfaces of, the Work and +Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original +version of the Work and any modifications or additions to that Work or +Derivative Works thereof, that is intentionally submitted to Licensor +for inclusion in the Work by the copyright owner or by an individual or +Legal Entity authorized to submit on behalf of the copyright owner. +For the purposes of this definition, "submitted" means any form of +electronic, verbal, or written communication sent to the Licensor or +its representatives, including but not limited to communication on +electronic mailing lists, source code control systems, and issue +tracking systems that are managed by, or on behalf of, the Licensor +for the purpose of discussing and improving the Work, but excluding +communication that is conspicuously marked or otherwise designated +in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity +on behalf of whom a Contribution has been received by Licensor and +subsequently incorporated within the Work. + +"Tizen Certified Platform" shall mean a software platform that complies +with the standards set forth in the Compatibility Definition Document +and passes the Compatibility Test Suite as defined from time to time +by the Tizen Technical Steering Group and certified by the Tizen +Association or its designated agent. + +2. Grant of Copyright License. Subject to the terms and conditions of +this License, each Contributor hereby grants to You a perpetual, +worldwide, non-exclusive, no-charge, royalty-free, irrevocable +copyright license to reproduce, prepare Derivative Works of, +publicly display, publicly perform, sublicense, and distribute the +Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of +this License, each Contributor hereby grants to You a perpetual, +worldwide, non-exclusive, no-charge, royalty-free, irrevocable +(except as stated in this section) patent license to make, have made, +use, offer to sell, sell, import, and otherwise transfer the Work +solely as incorporated into a Tizen Certified Platform, where such +license applies only to those patent claims licensable by such +Contributor that are necessarily infringed by their Contribution(s) +alone or by combination of their Contribution(s) with the Work solely +as incorporated into a Tizen Certified Platform to which such +Contribution(s) was submitted. If You institute patent litigation +against any entity (including a cross-claim or counterclaim +in a lawsuit) alleging that the Work or a Contribution incorporated +within the Work constitutes direct or contributory patent infringement, +then any patent licenses granted to You under this License for that +Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the +Work or Derivative Works thereof pursuant to the copyright license +above, in any medium, with or without modifications, and in Source or +Object form, provided that You meet the following conditions: + + 1. You must give any other recipients of the Work or Derivative Works + a copy of this License; and + 2. You must cause any modified files to carry prominent notices stating + that You changed the files; and + 3. You must retain, in the Source form of any Derivative Works that + You distribute, all copyright, patent, trademark, and attribution + notices from the Source form of the Work, excluding those notices + that do not pertain to any part of the Derivative Works; and + 4. If the Work includes a "NOTICE" text file as part of its distribution, + then any Derivative Works that You distribute must include a readable + copy of the attribution notices contained within such NOTICE file, + excluding those notices that do not pertain to any part of + the Derivative Works, in at least one of the following places: + within a NOTICE text file distributed as part of the Derivative Works; + within the Source form or documentation, if provided along with the + Derivative Works; or, within a display generated by the Derivative Works, + if and wherever such third-party notices normally appear. + The contents of the NOTICE file are for informational purposes only + and do not modify the License. + +You may add Your own attribution notices within Derivative Works +that You distribute, alongside or as an addendum to the NOTICE text +from the Work, provided that such additional attribution notices +cannot be construed as modifying the License. You may add Your own +copyright statement to Your modifications and may provide additional or +different license terms and conditions for use, reproduction, or +distribution of Your modifications, or for any such Derivative Works +as a whole, provided Your use, reproduction, and distribution of +the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, +any Contribution intentionally submitted for inclusion in the Work +by You to the Licensor shall be under the terms and conditions of +this License, without any additional terms or conditions. +Notwithstanding the above, nothing herein shall supersede or modify +the terms of any separate license agreement you may have executed +with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade +names, trademarks, service marks, or product names of the Licensor, +except as required for reasonable and customary use in describing the +origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or +agreed to in writing, Licensor provides the Work (and each +Contributor provides its Contributions) on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +implied, including, without limitation, any warranties or conditions +of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A +PARTICULAR PURPOSE. You are solely responsible for determining the +appropriateness of using or redistributing the Work and assume any +risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, +whether in tort (including negligence), contract, or otherwise, +unless required by applicable law (such as deliberate and grossly +negligent acts) or agreed to in writing, shall any Contributor be +liable to You for damages, including any direct, indirect, special, +incidental, or consequential damages of any character arising as a +result of this License or out of the use or inability to use the +Work (including but not limited to damages for loss of goodwill, +work stoppage, computer failure or malfunction, or any and all +other commercial damages or losses), even if such Contributor +has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing +the Work or Derivative Works thereof, You may choose to offer, +and charge a fee for, acceptance of support, warranty, indemnity, +or other liability obligations and/or rights consistent with this +License. However, in accepting such obligations, You may act only +on Your own behalf and on Your sole responsibility, not on behalf +of any other Contributor, and only if You agree to indemnify, +defend, and hold each Contributor harmless for any liability +incurred by, or claims asserted against, such Contributor by reason +of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Flora License to your work + +To apply the Flora License to your work, attach the following +boilerplate notice, with the fields enclosed by brackets "[]" +replaced with your own identifying information. (Don't include +the brackets!) The text should be enclosed in the appropriate +comment syntax for the file format. We also recommend that a +file or class name and description of purpose be included on the +same "printed page" as the copyright notice for easier +identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Flora License, Version 1.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://floralicense.org/license/ + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..f37f329 --- /dev/null +++ b/NOTICE @@ -0,0 +1,4 @@ +Copyright (c) Samsung Electronics Co., Ltd. All rights reserved. +Except as noted, this software is licensed under Flora License, Version 1. +Please, see the LICENSE.Flora file for Flora License terms and conditions. + diff --git a/description.xml b/description.xml new file mode 100644 index 0000000..27b577d --- /dev/null +++ b/description.xml @@ -0,0 +1,9 @@ + + + + + GlesCanvasTexture + 1.0 + screenshot.png + The Purpose of this application, GlesCanvasTexture, is to demonstrate the functionalities of CanvasTexture. + diff --git a/project/data/nofile.dummy b/project/data/nofile.dummy new file mode 100644 index 0000000..e69de29 diff --git a/project/inc/GlesCanvasTexture.h b/project/inc/GlesCanvasTexture.h new file mode 100644 index 0000000..75b8b48 --- /dev/null +++ b/project/inc/GlesCanvasTexture.h @@ -0,0 +1,123 @@ +// +// Tizen C++ SDK +// Copyright (c) 2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://floralicense.org/license/ +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an AS IS BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +#ifndef _GLES_CANVAS_TEXTURE_H_ +#define _GLES_CANVAS_TEXTURE_H_ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +class GlesCanvasTexture; + +class GlesForm + : public Tizen::Ui::Controls::Form + , public Tizen::Ui::ITouchEventListener +{ +public: + GlesForm(GlesCanvasTexture* pApp); + virtual ~GlesForm(void); + virtual result OnDraw(void); + virtual void OnTouchPressed(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo & touchInfo); + virtual void OnTouchReleased(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo); + virtual void OnTouchMoved(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo); + virtual void OnTouchFocusIn(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo); + virtual void OnTouchFocusOut(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo); + +private: + GlesCanvasTexture* __pApp; + Tizen::Graphics::Color __color; +}; + + +class GlesCanvasTexture + : public Tizen::App::Application + , public Tizen::System::IScreenEventListener + , public Tizen::Ui::IKeyEventListener + , public Tizen::Base::Runtime::ITimerEventListener +{ +public: + static Tizen::App::Application* CreateInstance(void); + + GlesCanvasTexture(void); + ~GlesCanvasTexture(void); + + virtual bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry); + virtual bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false); + virtual void OnForeground(void); + virtual void OnBackground(void); + virtual void OnLowMemory(void); + virtual void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel); + virtual void OnKeyPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode); + virtual void OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode); + virtual void OnKeyLongPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode); + + virtual void OnScreenOn(void); + virtual void OnScreenOff(void); + + virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer); + bool Draw(void); + void Update(void); + +private: + bool InitEGL(void); + bool InitGL(void); + bool InitCanvasTexture(void); + void DestroyGL(void); + void DestroyCanvasTexture(void); + void Cleanup(void); + + void Frustum(Tizen::Graphics::FloatMatrix4* pResult, float left, float right, float bottom, float top, float near, float far); + void Perspective(Tizen::Graphics::FloatMatrix4* pResult, float fovY, float aspect, float near, float far); + void Translate(Tizen::Graphics::FloatMatrix4* pResult, float tx, float ty, float tz); + void Rotate(Tizen::Graphics::FloatMatrix4* pResult, float angle, float x, float y, float z); + + void DrawText(Tizen::Base::String string); + +private: + Tizen::Graphics::Opengl::EGLDisplay __eglDisplay; + Tizen::Graphics::Opengl::EGLSurface __eglSurface; + Tizen::Graphics::Opengl::EGLConfig __eglConfig; + Tizen::Graphics::Opengl::EGLContext __eglContext; + Tizen::Graphics::Opengl::GLuint __programObject; + Tizen::Graphics::Opengl::GLint __indexPosition; + Tizen::Graphics::Opengl::GLint __indexTexture; + Tizen::Graphics::Opengl::GLint __indexTextureSample; + Tizen::Graphics::Opengl::GLint __indexMVP; + Tizen::Graphics::Opengl::GLfloat __angle; + Tizen::Base::Runtime::Timer* __pTimer; + Tizen::Graphics::FloatMatrix4 __matMVP; + + GlesForm* __pForm; + + Tizen::Graphics::Opengl::GLuint __textureId; + Tizen::Graphics::Opengl::CanvasTexture* __pCanvasTexture; + Tizen::Graphics::Canvas* __pCanvas; + Tizen::Graphics::Font* __pFont; + bool __needUpdateTexture; + + friend class GlesForm; +}; + +#endif // _GLES_CANVAS_TEXTURE_H_ diff --git a/project/manifest.xml b/project/manifest.xml new file mode 100644 index 0000000..b07a122 --- /dev/null +++ b/project/manifest.xml @@ -0,0 +1,22 @@ + + + $(manifestAppId) + 2.0.1 + C++App + + 2.0 + + + + + + $(projectName) + + + mainmenu.png + + + + + + diff --git a/project/res/nofile.dummy b/project/res/nofile.dummy new file mode 100644 index 0000000..e69de29 diff --git a/project/shared/data/nofile.dummy b/project/shared/data/nofile.dummy new file mode 100644 index 0000000..e69de29 diff --git a/project/shared/res/screen-density-xhigh/mainmenu.png b/project/shared/res/screen-density-xhigh/mainmenu.png new file mode 100644 index 0000000000000000000000000000000000000000..983c883493a0ae561b9592d54ea8204042b4b6fb GIT binary patch literal 17581 zcmWh!1yCGI6g=ErgFA=2yL<2e!JP!R;O-JMxI=K4;O-JEK!D(SxV!%SRdZ|=vb!_$ zrr+!CN0iz}IW%MGn)_u zLRS4EC8efjQ%n4@*V{mUuKj5+*J#Fcwdp88sSt31OGAFfODhGJ5=Z z%cscpZ|D8~saqJr4fBf}U#us$G@QEF;WP-q4S zSN2Lr_>!px6T%3rR7Qhv8;yWWkUk=dGlGr|D;ao7fq)5@*A&_`Q=GNmE8_!a5I4r= z^=}X;KM@a@?e(kY6nf3n6mMKJx-rX95Bxionc2?U-gKptI0&@m=0E$!%+^R0CHoEnDM)BrUf$c?T~ZvB)Hfa1@q4rGH}2JW zwR`jze!0Kh?B1pc;xr7BgMHZS|9zueOfsE>6l%7*A20XPg7W@CI!86AVAiI~h`XbX z?Hnha8GFrHOcf=W#4tqr=iOp^gZUXobb|*}_f-_iCy}Mh&>ZGYi5^qet#|t#1iI>Q z?3)K8!UWocY)yN-pNqZ9<j{#e|_MSP~pQSx3rf!Zt5X%H6AO6Q1mZ&f2ftiZ0@W z@nnja+XwCpLV}eTMZ__s{1*vj7OhJihe(hS_CVPu4~rc`LopVKt4^hq$Rp385v@g` zEl+wS;sPxYVIbR{C^QP<41Njkl;ijj)SxahkNQiht&EQ-RJIUh#=?ywGaf%bYsRIC zNFh*?gj&stUDon5gbk6--Cet@(7l z2P}4wOfM2ItcN6pDVc=4uCngOCHXQ65*lu-e@J{tFrn)G^i;`ZN=Dv;Z73zO#{lWet`^Q0p`jELii(8(EI(h7$g>3_Z zzz=2$rqQt7oZW$4u3h3?$}4^395Zp}pAVYbV2$ywiXZkc_qg}qEz>zAw2Lw|*2)UB zuz2D>OI8;&Yt*Vol;Lo@X9`S);43HoP|zv7i2WuTk)N1Ih!cQa{!6>y39hhbd6ZKQwwWQ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8o2%mrg}T-|Q`viKa|L_s@uD~>H${;*T0n&4CvO!rn!&A z@J=1+W8;fuSG+4x%INAA-YmI?DZ`(px)~6(9{%#~wW=7vWX%ciDX-Zlya|34K1ykj3T+D=~A1?MMvw98#;g3`G9SRDs?^UrTYOMQ@ z`?|avQ!C{+S5^K;hfk`i)2X`5cR~tD(8{>cm5pAvZP$!v*tdiAe=@q<%mhRj+I>2s z$2&WTI!kj1w%Thp{`~v*>UQ-z? z-saui-oD=EiukO%i^GT*WiW|3i}Dr>lCzFf7&X=u7l%C}ROjaAV)%+~Bm-ItqDglv zQFB^|7B1SJMn!yD&F}ZrR(?(l{!Tg?^5HF!b^@5SNza4QsB1a@-(@B9+hGDCeW|5^+3WU}93&^}pM?b?eWVF1q#BTj{ZEwqt>a z<;$1s35tCS)R{A9p6B!VZcr5Ev#jWi_pOP`p^C|#B1e_G7giqR zwah9%5xjEf`LKwSTd~bBj3;;O*zu%knwmo(+Y8Nkanr{ol=5+0Ena1#UM2gKQrvp$ zt&|XAKK$^**7oh&Ujy*wDW{w=EgTNtpeV{sygkB~rFz*=B9T6dr$Hn}xg~13B$(H9 zUH@5ITiYKw4zkN-9DNjS`baLMkHb+P#nmGY>?4mn!bGByOeUlC_4QY(s(Otq%jfdt zo;$jOq<`*3u9S0pps=ajSQv1*8ruuK=s1vziF#(2g z-_oT^DIvrngjkO}@`y1wIQS%hUp6&0)x_iR%Vb&pv@FYi<%Qt9VEM6ZEic5!d;FbA zu*tHl*9(Qh3%hph+Tw)BEdchdx86!cSpRVi*#A+E`ncQj<;%yCkN_nbjRqPT8ctVL zb&(`V3nWRJNeDUlPj%FCgzcl0?y_xrvuT>^Mn*>7>FVklbO>WP+(ZA|-1EPNqdx9- z^UXK23KtuIxqSI@ZRgINZ=tv>w*)}0tgH;CQmHA5qD+!yc_JYsMF>d(2m** +#include "GlesCanvasTexture.h" + +using namespace Tizen::Base; +using namespace Tizen::Base::Runtime; +using namespace Tizen::Graphics; +using namespace Tizen::Locales; +using namespace Tizen::System; +using namespace Tizen::App; +using namespace Tizen::System; +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics::Opengl; +using namespace Tizen::Base::Utility; + +const int TIME_OUT = 10; +const float PI = 3.1415926535897932384626433832795f; +//#define DISPLAY_FPS + +const char* VERTEX_TEXT = + "uniform mat4 uPositionMatrix;\n" + "attribute vec4 aPosition;\n" + "attribute vec4 aTextureCoord;\n" + "varying vec4 vTextureCoord;\n" + "\n" + "void main()\n" + "{\n" + " gl_Position = uPositionMatrix * aPosition;\n" + " vTextureCoord = aTextureCoord;\n" + "}"; + +const char* FRAGMENT_TEXT = + "precision highp float;\n" + "uniform sampler2D sTexture;\n" + "varying vec4 vTextureCoord;\n" + "\n" + "void main (void)\n" + "{\n" + " float borderSize = 0.01;" + " if (vTextureCoord.x < borderSize || vTextureCoord.x > 1.0 - borderSize || vTextureCoord.y < borderSize || vTextureCoord.y > 1.0 - borderSize)" + " {" + " gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);\n" + " }" + " else" + " {" + " gl_FragColor = texture2D(sTexture, vTextureCoord.xy);\n" + " }" + "}"; + +GlesForm::GlesForm(GlesCanvasTexture* pApp) + : __pApp(pApp) + , __color(Color::GetColor(COLOR_ID_WHITE)) +{ +} + +GlesForm::~GlesForm(void) +{ +} + +result +GlesForm::OnDraw(void) +{ + return E_SUCCESS; +} + +void +GlesForm::OnTouchPressed(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo & touchInfo) +{ + __color.SetColorComponents(Math::Rand() % 256, Math::Rand() % 256, Math::Rand() % 256, 128 + Math::Rand() % 128); +} + +void +GlesForm::OnTouchReleased(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo) +{ +} + +void +GlesForm::OnTouchMoved(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo) +{ + if (__pApp != null && __pApp->__pCanvas != null) + { + int size = 10 + Math::Rand() % 40; + Rectangle rect(touchInfo.GetCurrentPosition().x - size, touchInfo.GetCurrentPosition().y -size, size * 2, size * 2); + __pApp->__pCanvas->FillEllipse(__color, rect); + __pApp->DrawText(L"Touch the screen"); + __pApp->__needUpdateTexture = true; + } +} + +void +GlesForm::OnTouchFocusIn(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo) +{ + +} + +void +GlesForm::OnTouchFocusOut(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo) +{ + +} + +const GLfloat VERTICES[] = +{ + -0.5f, 0.5f, 0.0f, + -0.5f, -0.5f, 0.0f, + 0.5f, -0.5f, 0.0f, + 0.5f, 0.5f, 0.0f, + -0.5f, 0.5f, 0.0f, + -0.5f, -0.5f, 0.0f, + 0.5f, -0.5f, 0.0f, + 0.5f, 0.5f, 0.0f, +}; + +const GLfloat TEXTURES[] = { + 0.0f, 0.0f, + 0.0f, 1.0f, + 1.0f, 1.0f, + 1.0f, 0.0f, + 1.0f, 0.0f, + 1.0f, 1.0f, + 0.0f, 1.0f, + 0.0f, 0.0f, +}; + +const GLshort INDICES[] = +{ + 0, 1, 2, + 0, 2, 3, + 7, 6, 5, + 7, 5, 4, +}; + +const int numIndices = 12; + +GlesCanvasTexture::GlesCanvasTexture(void) + : __eglDisplay(EGL_DEFAULT_DISPLAY) + , __eglSurface(EGL_NO_SURFACE) + , __eglConfig(null) + , __eglContext(EGL_NO_DISPLAY) + , __programObject(0) + , __indexPosition(0) + , __indexTexture(0) + , __indexTextureSample(0) + , __indexMVP(0) + , __angle(0.0f) + , __pTimer(null) + , __pForm(null) + , __textureId(0) + , __pCanvasTexture(null) + , __pCanvas(null) + , __pFont(null) + , __needUpdateTexture(false) +{ +} + + +GlesCanvasTexture::~GlesCanvasTexture(void) +{ +} + + +void +GlesCanvasTexture::Cleanup(void) +{ + if (__pTimer != null) + { + __pTimer->Cancel(); + delete __pTimer; + __pTimer = null; + } + + DestroyCanvasTexture(); + DestroyGL(); +} + + +Application* +GlesCanvasTexture::CreateInstance(void) +{ + return new (std::nothrow) GlesCanvasTexture(); +} + +bool +GlesCanvasTexture::OnAppInitializing(AppRegistry& appRegistry) +{ + result r = E_SUCCESS; + Frame* pAppFrame = new (std::nothrow) Frame(); + TryReturn(pAppFrame != null, false, "Generating a frame failed."); + + r = pAppFrame->Construct(); + TryReturn(!IsFailed(r), false, "pAppFrame->Construct() failed."); + + AddFrame(*pAppFrame); + + __pForm = new (std::nothrow) GlesForm(this); + TryCatch(__pForm != null, , "Allocation of GlesForm failed."); + + r = __pForm->Construct(FORM_STYLE_NORMAL); + TryCatch(!IsFailed(r), , "__pForm->Construct(FORM_STYLE_NORMAL) failed."); + + r = GetAppFrame()->GetFrame()->AddControl(*__pForm); + TryCatch(!IsFailed(r), , "GetAppFrame()->GetFrame()->AddControl(*__pForm) failed."); + + __pForm->AddTouchEventListener(*__pForm); + + TryCatch(InitEGL(), , "InitEGL() failed."); + + TryCatch(InitGL(), , "InitGL() failed."); + + TryCatch(InitCanvasTexture(), , "InitVideoTexture() failed."); + + __pTimer = new (std::nothrow) Timer; + TryCatch(__pTimer != null, , "Failed to allocate memory."); + + r = __pTimer->Construct(*this); + TryCatch(!IsFailed(r), , "__pTimer->Construct(*this) failed."); + + // Comment the following statement to stop listen to the screen on/off events. + PowerManager::SetScreenEventListener(*this); + + return true; + +CATCH: + delete pAppFrame; + delete __pForm; + __pForm = null; + + AppLog("eglError : %#x glError : %#x VENDOR : %s GL_RENDERER : %s GL_VERSION : %s" + , static_cast(eglGetError()) + , static_cast(glGetError()) + , glGetString(GL_VENDOR) + , glGetString(GL_RENDERER) + , glGetString(GL_VERSION)); + + Cleanup(); + + return false; +} + + +bool +GlesCanvasTexture::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination) +{ + Cleanup(); + + return true; +} + + +void +GlesCanvasTexture::OnForeground(void) +{ + if (__pTimer != null) + { + __pTimer->Start(TIME_OUT); + } +} + + +void +GlesCanvasTexture::OnBackground(void) +{ + if (__pTimer != null) + { + __pTimer->Cancel(); + } +} + + +void +GlesCanvasTexture::OnBatteryLevelChanged(BatteryLevel batteryLevel) +{ +} + + +void +GlesCanvasTexture::OnLowMemory(void) +{ +} + +void +GlesCanvasTexture::OnKeyPressed(const Control& source, KeyCode keyCode) +{ +} + + +void +GlesCanvasTexture::OnKeyReleased(const Control& source, KeyCode keyCode) +{ +} + + +void +GlesCanvasTexture::OnKeyLongPressed(const Control& source, KeyCode keyCode) +{ +} + +void +GlesCanvasTexture::OnScreenOn(void) +{ + if (__pTimer != null) + { + __pTimer->Start(TIME_OUT); + } +} + +void +GlesCanvasTexture::OnScreenOff(void) +{ + if (__pTimer != null) + { + __pTimer->Cancel(); + } +} + +void +GlesCanvasTexture::OnTimerExpired(Timer& timer) +{ + if (__pTimer == null) + { + return; + } + + __pTimer->Start(TIME_OUT); + + Update(); + + if (!Draw()) + { + AppLog("Draw() failed."); + } +} + + +bool +GlesCanvasTexture::InitEGL(void) +{ + EGLint numConfigs = 1; + + EGLint eglConfigList[] = + { + EGL_RED_SIZE, 5, + EGL_GREEN_SIZE, 6, + EGL_BLUE_SIZE, 5, + EGL_ALPHA_SIZE, 0, + EGL_DEPTH_SIZE, 8, + EGL_SURFACE_TYPE, EGL_WINDOW_BIT, + EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, + EGL_NONE + }; + + EGLint eglContextList[] = + { + EGL_CONTEXT_CLIENT_VERSION, 2, + EGL_NONE + }; + + eglBindAPI(EGL_OPENGL_ES_API); + + if (__eglDisplay) + { + DestroyGL(); + } + + __eglDisplay = eglGetDisplay((EGLNativeDisplayType)EGL_DEFAULT_DISPLAY); + TryCatch(__eglDisplay != EGL_NO_DISPLAY, , "eglGetDisplay() failed."); + + TryCatch(!(eglInitialize(__eglDisplay, null, null) == EGL_FALSE || eglGetError() != EGL_SUCCESS), , "[GlesCanvasTexture] eglInitialize() failed."); + + TryCatch(!(eglChooseConfig(__eglDisplay, eglConfigList, &__eglConfig, 1, &numConfigs) == EGL_FALSE || + eglGetError() != EGL_SUCCESS), , "eglChooseConfig() failed."); + + TryCatch(numConfigs, , "eglChooseConfig() failed. because of matching config doesn't exist"); + + __eglSurface = eglCreateWindowSurface(__eglDisplay, __eglConfig, (EGLNativeWindowType)__pForm, null); + TryCatch(!(__eglSurface == EGL_NO_SURFACE || eglGetError() != EGL_SUCCESS), , "eglCreateWindowSurface() failed."); + + __eglContext = eglCreateContext(__eglDisplay, __eglConfig, EGL_NO_CONTEXT, eglContextList); + TryCatch(!(__eglContext == EGL_NO_CONTEXT || eglGetError() != EGL_SUCCESS), , "eglCreateContext() failed."); + + TryCatch(!(eglMakeCurrent(__eglDisplay, __eglSurface, __eglSurface, __eglContext) == EGL_FALSE || + eglGetError() != EGL_SUCCESS), , "eglMakeCurrent() failed."); + + return true; + +CATCH: + { + AppLog("GlesCanvasTexture can run on systems which supports OpenGL ES(R) 2.0.\n" + "When GlesCanvasTexture does not correctly execute, there are a few reasons.\n" + "1. The current device(real-target or emulator) does not support OpenGL ES(R) 2.0." + " Check the Release Notes.\n" + "2. The system running on emulator cannot support OpenGL(R) 2.1 or later." + " Try with other system.\n" + "3. The system running on emulator does not maintain the latest graphics driver." + " Update the graphics driver."); + } + + DestroyGL(); + + return false; +} + + +bool +GlesCanvasTexture::InitGL(void) +{ + GLint linked = GL_FALSE; + GLuint fragShader = glCreateShader(GL_FRAGMENT_SHADER); + GLuint vertShader = glCreateShader(GL_VERTEX_SHADER); + + glShaderSource(fragShader, 1, static_cast (&FRAGMENT_TEXT), null); + glCompileShader(fragShader); + GLint bShaderCompiled = GL_FALSE; + glGetShaderiv(fragShader, GL_COMPILE_STATUS, &bShaderCompiled); + + TryCatch(bShaderCompiled != GL_FALSE, , "bShaderCompiled == GL_FALSE"); + + glShaderSource(vertShader, 1, static_cast (&VERTEX_TEXT), null); + glCompileShader(vertShader); + glGetShaderiv(vertShader, GL_COMPILE_STATUS, &bShaderCompiled); + + TryCatch(bShaderCompiled != GL_FALSE, , "bShaderCompiled == GL_FALSE"); + + __programObject = glCreateProgram(); + glAttachShader(__programObject, fragShader); + glAttachShader(__programObject, vertShader); + glLinkProgram(__programObject); + glGetProgramiv(__programObject, GL_LINK_STATUS, &linked); + + if (linked == GL_FALSE) + { + GLint infoLen = 0; + glGetProgramiv(__programObject, GL_INFO_LOG_LENGTH, &infoLen); + + if (infoLen > 1) + { + char* infoLog = new (std::nothrow) char[infoLen]; + glGetProgramInfoLog(__programObject, infoLen, null, infoLog); + AppLog("Linking failed. log: %s", infoLog); + delete [] infoLog; + } + + TryCatch(false, , "linked == GL_FALSE"); + } + + __indexPosition = glGetAttribLocation(__programObject, "aPosition"); + __indexTexture = glGetAttribLocation(__programObject, "aTextureCoord"); + __indexTextureSample = glGetUniformLocation(__programObject, "sTexture"); + __indexMVP = glGetUniformLocation(__programObject, "uPositionMatrix"); + + glUseProgram(__programObject); + + glClearColor(0.0f, 0.0f, 0.0f, 0.0f); + glEnable(GL_DEPTH_TEST); + + __angle = 45.0f; + + glDeleteShader(vertShader); + glDeleteShader(fragShader); + + glClearColor(0, 0, 0, 1); + glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + + glEnable(GL_CULL_FACE); + + return true; + +CATCH: + glDeleteShader(vertShader); + glDeleteShader(fragShader); + + return false; +} + +bool +GlesCanvasTexture::InitCanvasTexture(void) +{ + result r = E_SUCCESS; + Rectangle rect = __pForm->GetBounds(); + + glGenTextures(1, &__textureId); + glBindTexture(GL_TEXTURE_2D, __textureId); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); + + __pCanvasTexture = new (std::nothrow) CanvasTexture; + TryCatch(__pCanvasTexture != null, , "Allocation of VideoTexture failed."); + + r = __pCanvasTexture->Construct(__textureId, rect.width, rect.height); + TryCatch(!IsFailed(r), , "__pCanvasTexture->Construct() failed."); + + __pCanvas = __pCanvasTexture->GetCanvasN(); + r = GetLastResult(); + TryCatch(__pCanvas != null && !IsFailed(r), , "__pCanvasTexture->GetCanvasN() failed. %s", GetErrorMessage(r)); + + __pFont = new (std::nothrow) Font; + TryCatch(__pFont != null, , "Allocation of __pFont failed."); + + r = __pFont->Construct(FONT_STYLE_BOLD, rect.width / 10); + TryCatch(!IsFailed(r), , "__pFont.Construct() failed. %s", GetErrorMessage(r)); + + __pCanvas->SetFont(*__pFont); + __pCanvas->SetBackgroundColor(Color::GetColor(COLOR_ID_BLACK)); + __pCanvas->Clear(); + DrawText(L"Touch the screen"); + __pCanvas->Show(); + + return true; + +CATCH: + DestroyCanvasTexture(); + + return false; +} + +void +GlesCanvasTexture::DestroyGL(void) +{ + if (__programObject) + { + glDeleteProgram(__programObject); + } + + if (__eglDisplay) + { + eglMakeCurrent(__eglDisplay, null, null, null); + + if (__eglContext) + { + eglDestroyContext(__eglDisplay, __eglContext); + __eglContext = EGL_NO_CONTEXT; + } + + if (__eglSurface) + { + eglDestroySurface(__eglDisplay, __eglSurface); + __eglSurface = EGL_NO_SURFACE; + } + + eglTerminate(__eglDisplay); + __eglDisplay = EGL_NO_DISPLAY; + } + + return; +} + +void +GlesCanvasTexture::DestroyCanvasTexture(void) +{ + if (__textureId != 0) + { + glDeleteTextures(1, &__textureId); + } + + delete __pCanvas; + delete __pCanvasTexture; + delete __pFont; +} + +void +GlesCanvasTexture::Update(void) +{ + FloatMatrix4 matPerspective; + FloatMatrix4 matModelview; + + __angle += 1.0f; + + if (__angle >= 360.0f) + { + __angle -= 360.0f; + } + + int x, y, width, height; + __pForm->GetBounds(x, y, width, height); + + float aspect = float(width) / float(height); + + Perspective(&matPerspective, 50.0f, aspect, 1.0f, 20.0f); + + Translate(&matModelview, 0.0f, 0.0f, -2.0f); + Rotate(&matModelview, __angle, 0.0f, 1.0f, 0.0f); + + __matMVP = matPerspective * matModelview; +} + + +bool +GlesCanvasTexture::Draw(void) +{ + if (eglMakeCurrent(__eglDisplay, __eglSurface, __eglSurface, __eglContext) == GL_FALSE || + eglGetError() != EGL_SUCCESS) + { + AppLog("eglMakeCurrent() failed."); + + return false; + } + + int x, y, width, height; + __pForm->GetBounds(x, y, width, height); + + glViewport(0, 0, width, height); + + glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + + glVertexAttribPointer(__indexPosition, 3, GL_FLOAT, GL_FALSE, 3 * sizeof(GL_FLOAT), VERTICES); + glVertexAttribPointer(__indexTexture, 2, GL_FLOAT, GL_FALSE, 2 * sizeof(GL_FLOAT), TEXTURES); + + glEnableVertexAttribArray(__indexPosition); + glEnableVertexAttribArray(__indexTexture); + + glUniformMatrix4fv(__indexMVP, 1, GL_FALSE, (GLfloat*)__matMVP.matrix); + glUniform1i(__indexTextureSample, 0); + + if (__needUpdateTexture) + { + __needUpdateTexture = false; + __pCanvas->Show(); + } + + glBindTexture(GL_TEXTURE_2D, __textureId); + + glDrawElements(GL_TRIANGLES, numIndices, GL_UNSIGNED_SHORT, INDICES); + + eglSwapBuffers(__eglDisplay, __eglSurface); + + +#ifdef DISPLAY_FPS + static float fps = 0.0f; + static float updateInterval = 1000.0f; + static float timeSinceLastUpdate = 0.0f; + static float frameCount = 0; + static long long currentTick; + static long long lastTick; + static bool isFirst = true; + + if (isFirst) + { + SystemTime::GetTicks(currentTick); + lastTick = currentTick; + isFirst = false; + } + + frameCount++; + SystemTime::GetTicks(currentTick); + + float elapsed = currentTick - lastTick; + + lastTick = currentTick; + timeSinceLastUpdate += elapsed; + + if (timeSinceLastUpdate > updateInterval) + { + if (timeSinceLastUpdate) + { + fps = (frameCount / timeSinceLastUpdate) * 1000.f; + AppLog("FPS: %f frames/sec", fps); + + frameCount = 0; + timeSinceLastUpdate -= updateInterval; + } + } +#endif + + return true; +} + + +void +GlesCanvasTexture::Frustum(FloatMatrix4* pResult, float left, float right, float bottom, float top, float near, float far) +{ + float diffX = right - left; + float diffY = top - bottom; + float diffZ = far - near; + + if ((near <= 0.0f) || (far <= 0.0f) || + (diffX <= 0.0f) || (diffY <= 0.0f) || (diffZ <= 0.0f)) + { + return; + } + + pResult->matrix[0][0] = 2.0f * near / diffX; + pResult->matrix[1][1] = 2.0f * near / diffY; + pResult->matrix[2][0] = (right + left) / diffX; + pResult->matrix[2][1] = (top + bottom) / diffY; + pResult->matrix[2][2] = -(near + far) / diffZ; + pResult->matrix[2][3] = -1.0f; + pResult->matrix[3][2] = -2.0f * near * far / diffZ; + + pResult->matrix[0][1] = pResult->matrix[0][2] = pResult->matrix[0][3] = 0.0f; + pResult->matrix[1][0] = pResult->matrix[1][2] = pResult->matrix[1][3] = 0.0f; + pResult->matrix[3][0] = pResult->matrix[3][1] = pResult->matrix[3][3] = 0.0f; +} + +void +GlesCanvasTexture::Perspective(FloatMatrix4* pResult, float fovY, float aspect, float near, float far) +{ + float fovRadian = fovY / 360.0f * PI; + float top = tanf(fovRadian) * near; + float right = top * aspect; + + Frustum(pResult, -right, right, -top, top, near, far); +} + +void +GlesCanvasTexture::Translate(FloatMatrix4* pResult, float tx, float ty, float tz) +{ + pResult->matrix[3][0] += (pResult->matrix[0][0] * tx + pResult->matrix[1][0] * ty + pResult->matrix[2][0] * tz); + pResult->matrix[3][1] += (pResult->matrix[0][1] * tx + pResult->matrix[1][1] * ty + pResult->matrix[2][1] * tz); + pResult->matrix[3][2] += (pResult->matrix[0][2] * tx + pResult->matrix[1][2] * ty + pResult->matrix[2][2] * tz); + pResult->matrix[3][3] += (pResult->matrix[0][3] * tx + pResult->matrix[1][3] * ty + pResult->matrix[2][3] * tz); +} + +void +GlesCanvasTexture::Rotate(FloatMatrix4* pResult, float angle, float x, float y, float z) +{ + FloatMatrix4 rotate; + + float cos = cosf(angle * PI / 180.0f); + float sin = sinf(angle * PI / 180.0f); + float cos1 = 1.0f - cos; + + FloatVector4 vector(x, y, z, 0.0f); + vector.Normalize(); + x = vector.x; + y = vector.y; + z = vector.z; + + rotate.matrix[0][0] = (x * x) * cos1 + cos; + rotate.matrix[0][1] = (x * y) * cos1 - z * sin; + rotate.matrix[0][2] = (z * x) * cos1 + y * sin; + rotate.matrix[0][3] = 0.0f; + + rotate.matrix[1][0] = (x * y) * cos1 + z * sin; + rotate.matrix[1][1] = (y * y) * cos1 + cos; + rotate.matrix[1][2] = (y * z) * cos1 - x * sin; + rotate.matrix[1][3] = 0.0f; + + rotate.matrix[2][0] = (z * x) * cos1 - y * sin; + rotate.matrix[2][1] = (y * z) * cos1 + x * sin; + rotate.matrix[2][2] = (z * z) * cos1 + cos; + + rotate.matrix[2][3] = rotate.matrix[3][0] = rotate.matrix[3][1] = rotate.matrix[3][2] = 0.0f; + rotate.matrix[3][3] = 1.0f; + + *pResult *= rotate; +} + +void +GlesCanvasTexture::DrawText(Tizen::Base::String string) +{ + Rectangle rect = __pCanvas->GetBounds(); + Dimension dimension; + __pCanvas->SetFont(*__pFont); + __pFont->GetTextExtent(string, string.GetLength(), dimension); + __pCanvas->SetBackgroundColor(Color::GetColor(COLOR_ID_BLACK)); + __pCanvas->SetForegroundColor(Color::GetColor(COLOR_ID_BLACK)); + __pCanvas->DrawText(Point((rect.width - dimension.width) / 2 + 3, rect.height / 2 + 3), string, Color::GetColor(COLOR_ID_BLACK)); + __pCanvas->SetForegroundColor(Color::GetColor(COLOR_ID_WHITE)); + __pCanvas->DrawText(Point((rect.width - dimension.width) / 2 , rect.height / 2), string, Color::GetColor(COLOR_ID_BLACK)); +} diff --git a/project/src/GlesCanvasTextureEntry.cpp b/project/src/GlesCanvasTextureEntry.cpp new file mode 100644 index 0000000..ac4c603 --- /dev/null +++ b/project/src/GlesCanvasTextureEntry.cpp @@ -0,0 +1,61 @@ +// +// Tizen C++ SDK +// Copyright (c) 2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://floralicense.org/license/ +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an AS IS BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +/** + * This file contains the Tizen C++ application entry point. + */ +#include "GlesCanvasTexture.h" + +using namespace Tizen::Base; +using namespace Tizen::Base::Collection; + +#ifdef __cplusplus +extern "C" +{ +#endif // __cplusplus + + +_EXPORT_ int OspMain(int argc, char* pArgv[]); + + +/** + * The entry function of Tizen C++ application called by the operating system. + */ +int +OspMain(int argc, char* pArgv[]) +{ + AppLog("Application started."); + ArrayList args; + args.Construct(); + + for (int i = 0; i < argc; i++) + { + args.Add(*(new (std::nothrow) String(pArgv[i]))); + } + AppLog("ssss"); + result r = Tizen::App::Application::Execute(GlesCanvasTexture::CreateInstance, &args); + + TryLog(r == E_SUCCESS, "[%s] Application execution failed", GetErrorMessage(r)); + + args.RemoveAll(true); + AppLog("Application finished."); + + return static_cast(r); +} +#ifdef __cplusplus +} +#endif // __cplusplus diff --git a/sample.xml b/sample.xml new file mode 100644 index 0000000..d43f0dd --- /dev/null +++ b/sample.xml @@ -0,0 +1,34 @@ + + diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000000000000000000000000000000000000..d95c27730e994aba77b681b61e6cdfce2e7467d0 GIT binary patch literal 14418 zcmb`NWl&pRwDto82=49e()(imf+{jh6P*Xj_7I@sb6P1k& zOqF#|!2*%0h{gnBCQ*MOgG2omNmjUyr96NpAps;9FNlPSj}MH+QvQk<4Zj9^NLCad zQXCmQ@w(?zY_rn+cs%{lvMP8|eVf}f3)>GuOqXU;<_JWr5G6+Y9WpjNx_8JZ90X74 z2tWljn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