Reico Europa Reste - Konvertieren in Internetradio

Alles zum Thema Selbstbau, Elektrobasteln und Messtechnik
Bernhard45
Capella
Capella
Beiträge: 30
Registriert: Mi Mai 03, 2017 12:55
Kenntnisstand: Elektrotechnischer Beruf/ Studium

Re: Reico Europa Reste - Konvertieren in Internetradio

Beitrag von Bernhard45 »

Du willst die Sendernamen drehen, hab ich das richtig verstanden? :shock:
Das wird auf dem kleinen Display mit der geringen Auflösung keine schöne Sache! :lol:

Wenn ja, dann brauchst Du das SDL_Rect dstrect nicht ändern, sondern du nimmst anstelle des Zeichenbefehls
SDL_RenderCopy(renderer, textur_prgtitel, NULL, &dstrect);

den Befehl:

SDL_RenderCopyEx(SDL_Renderer* renderer,
SDL_Texture* texture,
const SDL_Rect* srcrect,
const SDL_Rect* dstrect,
const double angle,
const SDL_Point* center,
const SDL_RendererFlip flip);

Die Erklärung für die ganzen Parameter:

Function Parameters
renderer = the rendering context
texture = the source texture; see Remarks for details
srcrect = the source SDL_Rect structure or NULL for the entire texture
dstrect = the destination SDL_Rect structure or NULL for the entire rendering target
angle = an angle in degrees that indicates the rotation that will be applied to dstrect, rotating it in a clockwise direction
center = a pointer to a point indicating the point around which dstrect will be rotated (if NULL, rotation will be done around dstrect.w/2, dstrect.h/2)

flip = a SDL_RendererFlip value stating which flipping actions should be performed on the texture

Im Parameter angle und center steckt die Lösung!

Gruß Bernhard
Benutzeravatar
olli0371
Geographik
Geographik
Beiträge: 2531
Registriert: Sa Feb 26, 2011 19:44
Kenntnisstand: Elektrotechnischer Beruf/ Studium
Wohnort: NRW

Re: Reico Europa Reste - Konvertieren in Internetradio

Beitrag von olli0371 »

Hallo,

es hat zwar etwas gedauert, aber wir sind ein gutes Stück weiter gekommen. Die Skalensimulation funktioniert jetzt zufriedenstellend:



(Skalensimulation ab 28:35).

Vielen Dank für die Hilfe.

Gruß
Oliver

P.S. Irgendwie wird das Video nicht angezeigt beim Einbinden. Daher hier mal der Link:

https://www.youtube.com/watch?v=SOM3GRIc4ys
Nette Grüsse aus dem Ruhrgebiet.

ollisTubes bei Youtube
ollisTubes bei odysee