# wsegl and pvr2d API documentation

**URL:** <https://forums.imgtec.com/t/wsegl-and-pvr2d-api-documentation/920>\
**Category:** PowerVR Insider\
**Created:** [November 22, 2010, 2:14pm UTC](https://forums.imgtec.com/t/wsegl-and-pvr2d-api-documentation/920 "2010-11-22T14:14:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnsoga](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@johnsoga](https://forums.imgtec.com/u/johnsoga)\
**Post date:** [November 22, 2010, 2:14pm UTC](https://forums.imgtec.com/t/wsegl-and-pvr2d-api-documentation/920/1 "2010-11-22T14:14:49Z")

</div>

Is there any documentation for the wsegl and pvr2d api? I am interested in trying to use accelerated blitting.

---

<div class="post-metadata">

**Author:** ![johnsoga](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@johnsoga](https://forums.imgtec.com/u/johnsoga)\
**Post date:** [November 23, 2010, 2:09pm UTC](https://forums.imgtec.com/t/wsegl-and-pvr2d-api-documentation/920/2 "2010-11-23T14:09:41Z")

</div>

I have been trying to poke around the pvr2d api. I am trying to blit an image to the screen using PVR2DBlt. Does anyone know if I can just use the PVR2D calls or do I need to do some other initialization? The following calls are what I am trying to use:  
  
  
  
  
  
PVR2DEnumerateDevices( 0 ) // To get the list of devices even though I know I only have 1  
  
  
PVR2DDEVICEINFO _devs = (PVR2DDEVICESINFO_)malloc( sizeof(PVR2DDEVICEINFO) \* num\_devices )  
  
  
PVR2DEnumerateDevices( devs )  
  
  
PVR2DCreateDeviceContext( dev[0], &context, 0 )  
  
  
PVR2DMEMINFO \*frame\_buffer  
  
  
PVR2DGetFrameBuffer( context, PVR2D\_FB\_PRIMARY\_SURFACE, &frame\_buffer )  
  
  
// I then use PVR2DMemWrap to wrap my image data  
  
  
// I build the PVR2DBLTINFO setting all the fileds  
  
  
PVR2DBlt( context, &blit )  
  
  
  
  
  
After I go though all of these steps nothing happens. Accouding to the return codes all of the calls are successful.

---

<div class="post-metadata">

**Author:** ![prabindh](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@prabindh](https://forums.imgtec.com/u/prabindh)\
**Post date:** [November 23, 2010, 2:19pm UTC](https://forums.imgtec.com/t/wsegl-and-pvr2d-api-documentation/920/3 "2010-11-23T14:19:00Z")

</div>

[  
](https://gforge.ti.com/gf/download/docmanfileversion/235/3975/xgxperf_svn73.tar.gz)

Take a look at test10 of sgxperf, for a working example of how to use PVR2D.
  

&nbsp;
  

https://gforge.ti.com/gf/download/docmanfileversion/235/3975/xgxperf\_svn73.tar.gz
  

&nbsp;
  

Can be browsed from,
  

&nbsp;
  

[https://gforge.ti.com/gf/project/gleslayer/scmsvn/?action=browse&path=%2F\*checkout\*%2Ftrunk%2FPackages%2FOMAP3\_Graphics\_SDK%2Fxgxperf%2Fsgxperf%2Fsgxperf\_gles20\_vg.cpp&revision=66](https://gforge.ti.com/gf/project/gleslayer/scmsvn/?action=browse&path=%2F*checkout*%2Ftrunk%2FPackages%2FOMAP3_Graphics_SDK%2Fxgxperf%2Fsgxperf%2Fsgxperf_gles20_vg.cpp&revision=66)

---

<div class="post-metadata">

**Author:** ![johnsoga](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@johnsoga](https://forums.imgtec.com/u/johnsoga)\
**Post date:** [November 23, 2010, 2:31pm UTC](https://forums.imgtec.com/t/wsegl-and-pvr2d-api-documentation/920/4 "2010-11-23T14:31:35Z")

</div>

prabindh: Thanks for the link, this is what I have been trying to find.
