Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - HKei

Pages: [1] 2
1
Window / Re: How to check whether or not an OpenGL context was created?
« on: February 02, 2013, 09:20:04 pm »
I meant "fail" in the meaning of "I didn't get the version I requested". I remember using a library (don't remember which though) that would fall back to OpenGL 2.1if I requested 4.0, which wasn't supported by my graphics card at the time.  Or are you saying that doesn't happen?

2
Feature requests / Re: 3d
« on: February 02, 2013, 05:53:50 pm »
glBegin? No thanks. :P

Also, glLightModel, glColor, glNormal and other unpleasant things from the dark ages.

3
Window / How to check whether or not an OpenGL context was created?
« on: February 02, 2013, 05:51:10 pm »
If context creation fails for some reason (e.g. the specified OpenGL version isn't supported by the driver), how does SFML behave and how can I react to this?

i.e. here

#include <iostream>
#include <string>
#include <stdexcept>

#include <GL/glew.h>

#include <SFML/Window.hpp>
#include <SFML/OpenGL.hpp>

const int MAJOR_VERSION=4;
const int MINOR_VERSION=2;

int main()
{
    try {
        sf::Window window{sf::VideoMode{800,600,32},"SFML Window", sf::Style::Default,
            sf::ContextSettings{24,8,2,MAJOR_VERSION,MINOR_VERSION}};
        // I wanna know here if there's a valid OpenGL 4.2 context, and if not,
       // throw an std::runtime_error
    } catch (std::runtime_error& e) {
        std::cerr << e.what() << std::endl;
    }
    return 0;
}
 

4
General / Haskell Binding (SFML2)
« on: June 05, 2012, 01:35:56 pm »
Is there an up to date Haskell binding to SFML/CSFML? The ones I found were all over a year old. If not, I'd probably write a new (at least partial) binding.

Update: Just to be on the safe side, I started to write a binding to CSFML. Doesn't do anything useful yet because I didn't use the Haskell FFI before, but it seems to be rather straight forward for the most part (thankfully CSFML doesn't use any macro magic from what I can tell, which makes the whole process a lot easier).

5
C / Re: cmake SFML_DIR-NOTFOUND?
« on: April 29, 2012, 12:24:34 pm »
Did that. It wasn't there.

6
C / Re: cmake SFML_DIR-NOTFOUND?
« on: April 29, 2012, 12:15:56 am »
I don't actually have a CMAKE_MODULE_PATH variable (and adding it doesn't do anything), but copying the .cmake did the trick. Thanks!

7
C / cmake SFML_DIR-NOTFOUND?
« on: April 28, 2012, 11:34:23 pm »
I do have SFML installed in /usr/local/, I have the source somewhere in my home directory. Yet in cmake-gui it keeps complaining (I assume that's the error). It says

Quote
    SFMLConfig.cmake
    sfml-config.cmake



Configuring incomplete, errors occurred!

In the output thingy. I don't know if that means it's looking for SFMLConfig.cmake and not finding it, or having troubles with something within those files. I'm really no good with cmake, can anyone tell me what's wrong (or how I could find out)?

8
General / Re: Why tile map over 1 large picture?
« on: April 19, 2012, 11:17:56 pm »
If your maps end up smaller than 4096x4096 pixels you're probably fine, but why bother? Setting up a tile map system isn't that hard, and saves time in the long run. Though of course if you want to do it like that, noones actually stopping you. You can just try if your approach works for the game you're using, just try to keep your code flexible enough so you can try something else if it doesn't.

9
General discussions / Re: why sfml is not on the wikipedia ?
« on: March 31, 2012, 03:01:46 pm »
I always thought wikipedias standards for notability were kinda silly, but whatever.

10
General / SFML 2.0 And Eclipse
« on: February 22, 2012, 01:34:17 pm »
Quote
I've never really use Eclipse but mostly because 'nobody' likes it.


There is a pretty large community of nobodies though.

Quote

Did you use a nightly build?


Yep. Last time I tried C::B was spring last year, and back then Code Completion was still too buggy to be actually usable (the completion box would randomly disappear, not appear at all or break down when macros were involved), I didn't like the looks of the editor and I had some issues with wxSmith too.

11
General discussions / Does SFML work with modern OpenGL?
« on: February 20, 2012, 10:30:02 pm »
Quote from: "Mars_999"
Well if I understand it, if you don't use CORE_PROFILE and use compatibility mode you can use GL2.1 and lower features with GL3+ features? If so why not just run SFML in compatibility mode then?


I believe I mentioned I wanted to use the Core profile.

12
General / SFML 2.0 And Eclipse
« on: February 20, 2012, 01:53:50 pm »
Quote

Code Blocks


Have used Code::Blocks for a while, but I didn't like it very much.

Quote

Qt Creator ( very very good, btw )


How so? Don't get me wrong, I think it looks interestening, I really just want to know some good points about it.

Quote

NetBeans ( pre 7.1, 7.1 blows )


NetBeans looks like Eclipse with an uglier UI to me. But can't say I ever used it.

I have been using Eclipse/CDT for a while now, and I really have never missed anything, the only thing that's really annoying is the workspace management, but that's mostly because I put everything in the same workspace intially so now I have this huge mess of completely unrelated projects...

13
General / Make collision detection run more frequently than drawing
« on: February 13, 2012, 06:40:48 pm »
No, threading is unnecessary. Logic is something very separate from drawing, so running the two at separate speeds isn't very problematic at all - just don't draw stuff when you don't need to.

(Though running logic at 60 Hz should be more than enough for most applications anyways).

14
General / Simplest way to distribute on Linux
« on: February 06, 2012, 09:21:15 pm »
Distribute the binaries, if you know what platform exactly you're targeting. Other than that, they probably won't get around installing SFML on their own.

15
General / Sharing variable in different files
« on: February 06, 2012, 06:35:03 pm »
Your english isn't really a problem.

Anyways: Have you thought about that maybe you don't actually need a global variable if you just look at the problem from a slightly different view point?

Pages: [1] 2