Coder Social home page Coder Social logo

gles2framework's People

Contributors

chriscamacho avatar if1live avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gles2framework's Issues

Transparent background

Hi,

Not an issue, but a question.
I'm learning OpenGL and can't stop playing with the Rpi, so I was really happy to find your helper library for fonts support :-)

I would like to draw a video overlay, i.e.
_ render a video using omxplayer (layer 0)
_ draw an Opengl and render it to a dispmanx layer to make an overlay

I'm currently trying to customize testFreetypeGlesPi to make the overlay background transparent.
Using dispmanx, I'm able to display png pictures with transparency, I would expect that I just need to make the texture's background transparent.
Although I can control the background color, I fail to make it transparent.

My changes are:

in makeNativeWindow():

  • VC_DISPMANX_ALPHA_T alpha = {
    DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS,255,0 };
  • VC_DISPMANX_ALPHA_T alpha = { DISPMANX_FLAGS_ALPHA_FROM_SOURCE,255,0 };

in main()

  • glClearColor(R, G, B, 1);
  • glClearColor(R, G, B, 0);

... so it seems that I've missed something.
Any idea? Could you give me some hints?

Thanks!

tutorial: compile examples for the first time

I have just installed Raspbian on my Raspberry Pi. Could you point how to install all the dependencies and what are the commands to compile and run gles2framework examples?

sudo apt-get install git
sudo apt-get install libpng-dev
sudo apt-get install libode-dev
...

git clone https://github.com/chriscamacho/gles2framework.git
cd gles2framework
make

no problem with make on raspberry pi, but nothing happens

Hi Chris,
your framework-examples are compiling fine with $C_INCLUDE_PATH=/opt/vc/include on raspberry pi but nothing happens when they are executed, I just get my command line back again; any hints for that issue?
Thanks a lot

Use of deprecated libpng api

The following little patch is needed in order to build this with libpng 1.4 or never.
The function in question has been marked as deprecated since version 1.0.18.

Here is more info from the version 1.4.0 announce file.

m. The function png_set_gray_1_2_4_to_8() was removed. It has been
deprecated since libpng-1.0.18 and 1.2.9, when it was replaced with
png_set_expand_gray_1_2_4_to_8() because the former function also
expanded palette images.


Here is the little patch that is needed to make this work on """""nonstable""""""
distros. (Arch, Gentoo):

diff --git a/src/support.c b/src/support.c
index ea48c86..80d93a5 100644
--- a/src/support.c
+++ b/src/support.c
@@ -294,7 +294,7 @@ int loadPNG(const char *filename)
if (colourType == PNG_COLOR_TYPE_PALETTE)
png_set_palette_to_rgb(png_ptr);
if (colourType == PNG_COLOR_TYPE_GRAY && bitDepth < 8)

  •           png_set_gray_1_2_4_to_8(png_ptr);
    
  •           png_set_expand_gray_1_2_4_to_8(png_ptr);
    if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS))
            png_set_tRNS_to_alpha(png_ptr);
    

License

Hello,
This looks like a nice project, especially for its ultra lightweight windowing/input that includes a no-X code path. However, I couldn't find its license and would ask you to correct this. Code without a license is essentially proprietary and cannot be reused for anything public. If you don't have a license in mind, I'd suggest MIT, which I prefer for my own stuff these days (it allows broader usage than the GPL).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.