How it's possible that we are storing some function in pointer's like win = SDL_CreateWindow("Hello World", posX, posY, width, height, 0);
? If it's not a function so what is it cuz it looks like a function. Second what type of pointer's are these is it pointer to member function ? I mean that SDL_Window *win; SDL_Renderer *renderer;
. How it's possible that I can just declare it like that without any ampersand ?
Can you text me pseudocode to understand how this pointer can hold this "function"?
include "SDL.h"
int main(int argc, char *argv[])
{
int posX = 100, posY = 100, width = 320, height = 240;
SDL_Window *win;
SDL_Renderer *renderer;
win = SDL_CreateWindow("Hello World", posX, posY, width, height, 0);
renderer = SDL_CreateRenderer(win, -1, SDL_RENDERER_ACCELERATED);
return 0;
}