aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrIPoint.h
blob: 9471054f06d49289055eb3d52d74332d021d05b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

/*
 * Copyright 2010 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */



#ifndef GrIPoint_DEFINED
#define GrIPoint_DEFINED

#include "GrTypes.h"

struct GrIPoint {
public:
    int32_t fX, fY;
    
    GrIPoint(int32_t x, int32_t y) : fX(x), fY(y) {}
   
    void set(int32_t x, int32_t y) {
        fX = x;
        fY = y;
    }
};

#endif