Openkode 1.0.2 Specification

Openkode 1.0.2 Specification

OpenKODE 1.0.2 Specification Edited by Tim Renouf OpenKODE 1.0.2 Specification: Copyright © 2006,2007,2008 The Khronos Group Inc. All Rights Reserved. This specification is protected by copyright laws and contains material proprietary to the Khronos Group, Inc. It or any components may not be reproduced, republished, distributed, transmitted, displayed, broadcast or otherwise exploited in any manner without the express prior written permission of Khronos Group. You may use this specification for implementing the functionality therein, without altering or removing any trademark, copyright or other notice from the specification, but the receipt or possession of this specification does not convey any rights to reproduce, disclose, or distribute its contents, or to manufacture, use, or sell anything that it may describe, in whole or in part. Khronos Group grants express permission to any current Promoter, Contributor or Adopter member of Khronos to copy and redistribute UNMODIFIED versions of this specification in any fashion, provided that NO CHARGE is made for the specification and the latest available update of the specification for any version of the API is used whenever possible. Such distributed specification may be re-formatted AS LONG AS the contents of the specification are not changed in any way. The specification may be incorporated into a product that is sold as long as such product includes significant independent work developed by the seller. A link to the current version of this specification on the Khronos Group web-site should be included whenever possible with specification distributions. Khronos Group makes no, and expressly disclaims any, representations or warranties, express or implied, regarding this specification, including, without limitation, any implied warranties of merchantability or fitness for a particular purpose or non-infringement of any intellectual property. Khronos Group makes no, and expressly disclaims any, warranties, express or implied, regarding the correctness, accuracy, completeness, timeliness, and reliability of the specification. Under no circumstances will the Khronos Group, or any of its Promoters, Contributors or Members or their respective partners, officers, directors, employees, agents or representatives be liable for any damages, whether direct, indirect, special or consequential damages for lost revenues, lost profits, or otherwise, arising from or in connection with these materials. Khronos, OpenKODE, OpenVG, OpenSL ES and OpenMAX AL are trademarks of The Khronos Group Inc. OpenGL ES is a trademark of Silicon Graphics, Inc. Windows is a registered trademark of Microsoft, Inc. Java is a trademark of Sun Microsystems, Inc. Symbian is a trademark of Symbian Software Limited. BREW is a trademark of QUALCOMM, Inc. Table of Contents 1. Introduction .................................................................................................................................... 1 1.1. Specification conventions ........................................................................................................ 1 1.1.1. Non-normative text ...................................................................................................... 1 1.2. Overview ............................................................................................................................. 1 1.2.1. OpenKODE and OpenKODE Core ................................................................................. 1 I. OpenKODE 1.0.2 .............................................................................................................................. 3 2. OpenKODE conformance .......................................................................................................... 5 2.1. Conformance tests ......................................................................................................... 5 2.2. Conformant OpenKODE implementation ........................................................................... 5 2.2.1. Windowless OpenKODE ...................................................................................... 5 2.2.2. Windowing OpenKODE ....................................................................................... 5 2.3. EGL ............................................................................................................................ 5 2.3.1. Supported client APIs ........................................................................................... 6 2.3.2. EGLImage-related extensions ................................................................................ 6 2.3.3. Lock surface extension ......................................................................................... 6 2.3.4. Lock surface extension rationale ............................................................................. 6 2.3.5. EGL entry points ................................................................................................. 7 2.3.6. EGL power management event .............................................................................. 7 2.4. Future directions ............................................................................................................ 8 II. OpenKODE Core 1.0.2 ..................................................................................................................... 9 3. Overview .............................................................................................................................. 11 3.1. OpenKODE Core ......................................................................................................... 11 3.1.1. OpenKODE Core programming environment .......................................................... 11 3.1.2. API conventions (KD and kd prefixes) ................................................................... 12 4. Programming environment ....................................................................................................... 13 4.1. Header file .................................................................................................................. 13 4.1.1. Note for implementers ........................................................................................ 13 4.2. C subset ..................................................................................................................... 13 4.2.1. Rationale ......................................................................................................... 14 4.3. OpenKODE Core functions ............................................................................................ 14 4.3.1. Note for implementers ........................................................................................ 14 4.3.2. Error detection .................................................................................................. 14 4.3.3. Undefined behavior ............................................................................................ 15 4.4. Thread safety .............................................................................................................. 15 4.4.1. Future directions ............................................................................................... 15 4.5. Types ......................................................................................................................... 15 4.5.1. Rationale ......................................................................................................... 16 4.6. Constants .................................................................................................................... 16 4.7. Main thread stack size ................................................................................................... 17 4.7.1. Rationale ......................................................................................................... 18 4.8. Extensions .................................................................................................................. 18 5. Errors ................................................................................................................................... 19 5.1. Introduction ................................................................................................................ 19 5.2. Constants .................................................................................................................... 19 5.3. Functions .................................................................................................................... 20 5.3.1. kdGetError ....................................................................................................... 20 5.3.2. kdSetError ........................................................................................................ 21 6. Versioning and attribute queries ................................................................................................. 23 6.1. Introduction ................................................................................................................ 23 6.2. Functions .................................................................................................................... 23 6.2.1. kdQueryAttribi .................................................................................................. 23 iii 6.2.2. kdQueryAttribcv ............................................................................................... 23 6.2.3. kdQueryIndexedAttribcv ....................................................................................

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    206 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us