Bbop-2D 0.4.1-alpha
Bbop-2D is a c++ library based on openGL to make 2D game. It implement sprite, shape, light and more.
Loading...
Searching...
No Matches
Functions
bbopFunc.h File Reference
#include "bbopMathClass.h"
#include "bbopGlobal.h"
#include "collisionBoxClass.h"
#include "sceneClass.h"
#include "shapeClass.h"
#include "textureClass.h"
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <vector>
Include dependency graph for bbopFunc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int bbopInit (int windowX, int windowY, const char *windowName, GLFWwindow *&window)
 Fonction d'initialisation de Bbop Library.
 
void bbopCleanWindow (GLFWwindow *&window, Vector3i rgb, float alpha)
 Fonction de nettoyage de la fenêtre.
 
void bbopErrorCheck ()
 Fonction de verification d'erreur d'opengl.
 
void bbopChangeWindowResolution (const Vector2i &nWinR)
 Change la resolution de la fenêtre glfw utilisé dans bbopInit.
 
void bbopChangeWindowResolution (int x_, int y_)
 Change la resolution de la fenêtre glfw utilisé dans bbopInit.
 
void bbopChangeWindowSize (const Vector2i &nWinS)
 Change la taille de la fenêtre glfw utilisé dans bbopInit.
 
void bbopChangeWindowSize (int x_, int y_)
 Change la taille de la fenêtre glfw utilisé dans bbopInit.
 
void bbopDebugCollisionBox (const CollisionBox &box, Scene &scene)
 Debug de collision en affichant une box.
 

Function Documentation

◆ bbopChangeWindowResolution() [1/2]

void bbopChangeWindowResolution ( const Vector2i nWinR)

Change la resolution de la fenêtre glfw utilisé dans bbopInit.

Parameters
[in]wWinRNouvelle resolution de la fenêtre
See also
bbopInit

◆ bbopChangeWindowResolution() [2/2]

void bbopChangeWindowResolution ( int  x_,
int  y_ 
)

Change la resolution de la fenêtre glfw utilisé dans bbopInit.

Parameters
[in]x_resolution x
[in]y_resolution y

◆ bbopChangeWindowSize() [1/2]

void bbopChangeWindowSize ( const Vector2i nWinS)

Change la taille de la fenêtre glfw utilisé dans bbopInit.

Parameters
[in]wWinSNouvelle taille de la fenêtre
See also
bbopInit

◆ bbopChangeWindowSize() [2/2]

void bbopChangeWindowSize ( int  x_,
int  y_ 
)

Change la taille de la fenêtre glfw utilisé dans bbopInit.

Parameters
[in]x_taille x
[in]y_taille y

◆ bbopCleanWindow()

void bbopCleanWindow ( GLFWwindow *&  window,
Vector3i  rgb,
float  alpha 
)

Fonction de nettoyage de la fenêtre.

Parameters
[in]windowFenêtre à nettoyer
[in]rgbCouleur de fond de la fenêtre
[in]alphaTransaprence du nettoyage

◆ bbopDebugCollisionBox()

void bbopDebugCollisionBox ( const CollisionBox box,
Scene scene 
)

Debug de collision en affichant une box.

Parameters
[in]boxBoîte de collision à afficher
[in]sceneScene a utiliser pour afficher la box
See also
CollisionBox
Todo:
Optimiser cette méthode terriblement lente

◆ bbopErrorCheck()

void bbopErrorCheck ( )

Fonction de verification d'erreur d'opengl.

Affiche toutes les erreurs acumulées dans le cache opengl

◆ bbopInit()

int bbopInit ( int  windowX,
int  windowY,
const char *  windowName,
GLFWwindow *&  window 
)

Fonction d'initialisation de Bbop Library.

Parameters
[in]windowXTaille x de la fenêtre
[in]windowYTaille y de la fenêtre
[in]windowNameNom de la fenêtre
[in,out]windowFenêtre glfw à utiliser
Note
window dois-être un pointeur
Todo:
Ajouter le paramétrage du uberShader