Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RPi graficke biblioteke
#3
PHP Code:
// first OpenVG program
// Anthony Starks (ajstarks@gmail.com)
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "VG/openvg.h"
#include "VG/vgu.h"
#include "fontinfo.h"
#include "shapes.h"

int main() {
    
int widthheight;
    
char s[3];

    
init(&width, &height);                    // Graphics initialization

    
Start(widthheight);                    // Start the picture
    
Background(000);                    // Black background
    
Fill(44772321);                    // Big blue marble
    
Circle(width 20width);            // The "world"
    
Fill(2552552551);                    // White text
    
TextMid(width 2height 2"hello, world"SerifTypefacewidth 10);    // Greetings 
    
End();                                       // End the picture

    
fgets(s2stdin);                           // look at the pic, end with [RETURN]
    
finish();                                // Graphics cleanup
    
exit(0);

Manji program od ovoga u C/C++ tesko da moze da se napravi sa OpenGL grafikom : )
Znate kako radi taj GPU to, kao "dobar dan", broj vertexa na sceni moze da se meri desetinama hiljada i da radi dinamicno animaciju bez problema!
Reply


Messages In This Thread
RPi graficke biblioteke - by mikikg - 10-19-2018, 10:17 PM
RE: RPi graficke biblioteke - by mikikg - 10-19-2018, 10:55 PM
RE: RPi graficke biblioteke - by mikikg - 10-19-2018, 11:27 PM
RE: RPi graficke biblioteke - by mikikg - 10-20-2018, 11:09 AM
RE: RPi graficke biblioteke - by vsavic - 10-20-2018, 02:18 PM
RE: RPi graficke biblioteke - by mikikg - 10-20-2018, 05:01 PM
RE: RPi graficke biblioteke - by mikikg - 10-24-2018, 09:53 PM
RE: RPi graficke biblioteke - by mikikg - 10-25-2018, 05:21 PM
RE: RPi graficke biblioteke - by mikikg - 10-25-2018, 05:54 PM
RE: RPi graficke biblioteke - by 1van - 10-25-2018, 07:33 PM
RE: RPi graficke biblioteke - by mikikg - 10-26-2018, 01:58 AM
RE: RPi graficke biblioteke - by mikikg - 10-26-2018, 02:40 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)