init commit

This commit is contained in:
2024-11-12 17:41:10 +01:00
parent 1e4f1f955b
commit 20bc9108d3
146 changed files with 24465 additions and 0 deletions

49
server/reseauSDL.h Normal file
View File

@@ -0,0 +1,49 @@
#ifndef __RESEAU_SDL
#define __RESEAU_SDL
#include <iostream>
#include <SDL.h>
#include <SDL_image.h>
#include <time.h>
#include "../InterfaceCpp/sdlcommon.h"
#include "../InterfaceCpp/SFont.h"
#include "../backprop/neurone.h"
#include "../backprop/couche.h"
#include "../backprop/inputCouche.h"
#include "../backprop/synapse.h"
#include "../backprop/synapseMatrix.h"
#include "../backprop/reseau.h"
#define FONT_PATH "InterfaceCpp/font.png"
using namespace std;
class ReseauSDL
{
private:
SDL_Surface* screen;
int couche1;
int couche2;
int couche3;
int width;
int height;
bool active;
Reseau *R;
//SFont_Font* font;
public:
ReseauSDL();
// ~ReseauSDL();
void setReseau(Reseau *r);
void putPixel(int , int , char, char, char);
void refresh();
//void redraw_synapses(Reseau &R);
void drawNeuron(int couche, int neur);
void showScreen(int x, int y);
void hideScreen();
bool getState();
void setState(bool );
};
#endif