mirror of
https://github.com/TomHarte/CLK.git
synced 2024-08-16 16:28:59 +00:00
40 lines
508 B
C
40 lines
508 B
C
//
|
|
// CRTFrame.h
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 24/07/2015.
|
|
// Copyright © 2015 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef CRTFrame_h
|
|
#define CRTFrame_h
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct CRTBuffer {
|
|
uint8_t *data;
|
|
int depth;
|
|
};
|
|
|
|
typedef struct {
|
|
int width, height;
|
|
} CRTSize;
|
|
|
|
struct CRTFrame {
|
|
CRTSize size, dirty_size;
|
|
|
|
int number_of_buffers;
|
|
CRTBuffer *buffers;
|
|
|
|
int number_of_runs;
|
|
uint16_t *runs;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* CRTFrame_h */
|