Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: OpenGL ES

  1. #1

    OpenGL ES

    Is there an pascal/delphi unit available for opengl es

    for more info on opengl es see:
    http://www.khronos.org/opengles/1_X/

    and:
    http://www.imgtec.com/PowerVR/inside...xMBX/index.asp

    A first try at converting the c headers to pascal using the jedi tool ended up in a disaster (what a suprise :roll: ).

    Searching for an existing conversion also gave nothing.

    Now as opengl es 1.x is a subset of opengl using some 1.5 features i could go copy and paste the relevant entries from dlgopengl. But i doubt if that would be successfull.

    Before going in the hard way and convert it by hand i could use some ideas/ tips etc.

    I even considered leaving pascal and go the c way, saves a lot of time for not having to do this conversion. :twisted:
    http://3das.noeska.com - create adventure games without programming

  2. #2

    OpenGL ES

    some exampless:

    Code:
    typedef struct _KEGL_SURFACE_ *EGLSurface;
    typedef struct _KEGL_CONTEXT_ *EGLContext;
    and

    Code:
    #define EGL_DEFAULT_DISPLAY ((NativeDisplayType)0)
    #define EGL_NO_CONTEXT ((EGLContext)0)
    #define EGL_NO_DISPLAY ((EGLDisplay)0)
    #define EGL_NO_SURFACE ((EGLSurface)0)
    http://3das.noeska.com - create adventure games without programming

  3. #3

    OpenGL ES

    How are the _KEGL_SURFACE_ and _KEGL_CONTEXT_ structs defined? The lines you provide look like they are pointers to structures/records.

    The EGL_* defines look like C Macros to me. In Pascal you would need to explicitly define these are procedures I think.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  4. #4

    OpenGL ES

    this is the complete egltypes.h

    Code:
    /*****************************************************************************
     Name &#58;		egltypes.h
     Date &#58;		11/04/05
     Platform &#58; Windows XP/Windows CE/PocketPC
    
     Description &#58;
     Native egltypes.h as required by Khronos OpenGL ES egl.h
    
     This file is part of the PowerVR OpenGL ES SDK.
    
     Copyright 2000-2005 by Imagination Technologies Ltd. All rights reserved.
     Information and source code samples contained herein are
     provided "as-is", without representations or warranties, and
     are subject to change without notice. The author cannot support
     modifications or derivative works created from the sample source
     code provided. You may use, reproduce, and modify portions or
     entire sections of the sample source code for the purposes of
     creating applications. Distribution is limited to executable
     or binary portions of the sample source code unless you gain
     written permission from the author.
    *****************************************************************************/
    #ifndef _egltypes_h_
    #define _egltypes_h_
    
    /* Types */
    typedef int EGLBoolean;
    #define EGL_FALSE 0
    #define EGL_TRUE  1
    
    /* An integer of at least 32 bits */
    typedef int EGLint;
    
    /* Resources */
    typedef EGLint EGLDisplay;
    typedef EGLint EGLConfig;
    typedef struct _KEGL_SURFACE_ *EGLSurface;
    typedef struct _KEGL_CONTEXT_ *EGLContext;
    
    /* Windowing system&#58; Windows */
    #undef UNREFERENCED_PARAMETER
    #include <windows>
    
    typedef HDC   NativeDisplayType;
    typedef HWND  NativeWindowType;
    typedef void *NativePixmapType;
    
    /* May need to export on some platforms */
    #define GLAPI_EXT
    
    /* EGL and native handle values */
    #define EGL_DEFAULT_DISPLAY &#40;&#40;NativeDisplayType&#41;0&#41;
    #define EGL_NO_CONTEXT &#40;&#40;EGLContext&#41;0&#41;
    #define EGL_NO_DISPLAY &#40;&#40;EGLDisplay&#41;0&#41;
    #define EGL_NO_SURFACE &#40;&#40;EGLSurface&#41;0&#41;
    
    #endif
    http://3das.noeska.com - create adventure games without programming

  5. #5

    OpenGL ES

    some of the opengl es have some wierd entries in the dll:
    like _eglGetDisplay@4

    now i have to do something like:
    Code:
    function  eglGetDisplay&#40;display_id&#58; NativeDisplayType &#41;&#58; EGLDisplay; stdcall; external 'libgles_cl.dll' name '_eglGetDisplay@4';
    function  eglInitialize&#40;dpy&#58; EGLDisplay ; major&#58; PEGLint ; minor&#58; PEGLint &#41;&#58; EGLBoolean; stdcall; external 'libgles_cl.dll' name '_eglInitialize@12'; //*major *minor
    http://3das.noeska.com - create adventure games without programming

  6. #6

    OpenGL ES

    I finished an alpha version: http://www.noeska.net/downloads/opengles.zip
    http://3das.noeska.com - create adventure games without programming

  7. #7
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    OpenGL ES

    Very nice work!

    I believe those of you that were wanting to make games for the GP2X would be most interested in this, no?

    What were the other systems that required OpenGL|ES in place of a fully featured OpenGL API?
    Jason McMillen
    Pascal Game Development
    Co-Founder





  8. #8

    OpenGL ES

    Quote Originally Posted by WILL
    What were the other systems that required OpenGL|ES in place of a fully featured OpenGL API?
    Playstation? :lol:
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  9. #9

    OpenGL ES

    My first concern is the efika(2) (http://www.genesippc.com/).

    Also opengl es 1.x is on some 'of the newer' mobile phones /pda's also.

    Playstation3 also features opengl es, but not in linux.

    Isn't the gpx2 2d only?
    http://3das.noeska.com - create adventure games without programming

  10. #10
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    OpenGL ES

    GP2X can do both 2D and 3D. ie. Doom/Quake have been ported onto it in the not to distant past. It just might not have as much 3D processing as on a PC or a non-portable game console. But this is what GL|ES is for, right?

    btw, what are you planning on doing with the efika? Arcade machine perhaps?
    Jason McMillen
    Pascal Game Development
    Co-Founder





Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •