Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: DirtyBlasion

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    137

    Texture is black

    Hi, there! I will put more code because it explains better than I would


    #include "Texture.h"
    #define STB_IMAGE_IMPLEMENTATION
    #include "..\stb_image.h"
    #include <iostream>

    ...
  2. Replies
    17
    Views
    863

    Hi, I'm not the one that questioned, but you are...

    Hi, I'm not the one that questioned, but you are "OpenGL Pro" so, you must know something. Never used that parameter, I used to replace it with nullptr, and do the same as mhagain said, but what I...
  3. Texture on an vertex array drawn shape

    So I want to recreate minecraft, I have created everything, it does create chunk shape, it draws it, but how I can put corresponding texture.

    What I'm thinking at, but I don't know how to apply is...
  4. Replies
    6
    Views
    933

    I cant understand how I can transform a PNG in...

    I cant understand how I can transform a PNG in glTexImage2D image data, last parameter
  5. Replies
    6
    Views
    933

    Opengl texture, explain?

    So I read a lot of things about textures, but it's still blocks me out... So please can somebody explain me something, on how it works?
  6. Replies
    3
    Views
    672

    Impresive, I got my system actually worked, but I...

    Impresive, I got my system actually worked, but I forgot to add things in drawplane. So I never used glm, because I considered my math is enough, anyways, I want to know how does your system works,...
  7. Replies
    3
    Views
    672

    camera problems

    Hi there!

    These days I'm strugling with a fps camera style.

    here's my camera code


    void Camera::FirstPerson(SDL_Window* window)
    {
    SDL_GetMouseState(&mousex, &mousey);
  8. Replies
    0
    Views
    481

    Missing GL version

    So I isntalled glew, all good, but my altgorithm didn't worked propely, and I put this in my script


    GLenum err = glewInit();
    if(err != GLEW_OK)
    {
    cout << "Error(glew): "...
  9. Replies
    1
    Views
    405

    SFML and Glew

    So initialy I was starting with glut, but I read somethings and I think sfml and glew are a great combo. So I started, I did the basic things, but how I can draw with a function? I make void Draw();...
  10. Replies
    4
    Views
    700

    Nobody? Please, help me! So I use freeglut. I...

    Nobody? Please, help me! So I use freeglut. I have this class
    class PlayerClass
    {
    public:
    int x, y, z, xzdir = 0, ydir = 0;
    PlayerClass(int _x, int _y, int _z)
    {
    x = _x;
    ...
  11. Replies
    4
    Views
    700

    re

    So it simply dont move, my pyramid is in the center of the screen. This camera should be supposed to act like a first person. The debug show the values pretty good. They increare, or decrease like it...
  12. Replies
    4
    Views
    700

    Camera problem

    #ifndef PLAYERCLASS_H_INCLUDED
    #define PLAYERCLASS_H_INCLUDED

    #include <iostream>
    #include <windows.h>
    #include <stdlib.h>
    #include <GL/glew.h>
    #include <GL/freeglut.h>
    #include <math.h>
  13. Replies
    0
    Views
    354

    What I need for start?

    So I'm working with code blocks, on c++. I want to get started. I want to start a game without any engine and thing. A Minecraft like.

    I see some people use glut, others use glew, or glfw3. Whats...
Results 1 to 13 of 13