You are not logged in.

#1 2015-10-19 15:02:03

kox
Member
Registered: 2015-05-01
Posts: 146

Graphics.h in C, SDL

Hello. Quick question. I need graphics.h in C. I heard that SDL has its implementation. I have it installed, however <graphics.h> isn't there. I have also browsed sdl package and there is not a file named graphics or anything like it.

Offline

#2 2015-10-19 15:10:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,534
Website

Re: Graphics.h in C, SDL

These packages include a "graphics.h"

$ pkgfile graphics.h
extra/allegro4
extra/octave
extra/wxgtk
extra/wxgtk2.8
community/freerdp

However, I'm pretty sure this is an X-Y question as it is highly unlikely that any of these are what you are looking for.

What are you actually trying to do?  What errors are you getting?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2015-10-19 15:52:20

kox
Member
Registered: 2015-05-01
Posts: 146

Re: Graphics.h in C, SDL

I get an error that graphics.h is not found. I just want basic 2d stuff, like drawing circles, lines etc.

Offline

#4 2015-10-19 15:54:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,534
Website

Re: Graphics.h in C, SDL

kox wrote:

I get an error that graphics.h is not found.

That's not at all useful.  What command led to that error?  What was the *exact* error message?  What are you trying to compile when you encounter that error?

What do you want to draw circles and lines on?  Image files?  Web pages?  X Windows?

As is, this is not a programming issue.  Moving to Newbie Corner.  Please read the following:
http://catb.org/~esr/faqs/smart-questions.html


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB